RAMpiSettings#
- class ansys.rocky.app.ra_mpi_settings.RAMpiSettings(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper for the MPI Execution Settings.
Access it from the
RASimulatorRunwith:simulator_run = study.GetSimulatorRun() mpi_settings = simulator_run.GetMpiSettings() mpi_settings.GetNumberOfProcessors()
Overview#
Get the value of “Extra Params”. |
|
Set the value of “Extra Params”. |
|
Get the value of “Heterogeneous”. |
|
Set the value of “Heterogeneous”. |
|
Set the value of “Heterogeneous” to True. |
|
Set the value of “Heterogeneous” to False. |
|
Check if the “Heterogeneous” is enabled. |
|
Get the value of “Hostfile”. |
|
Set the value of “Hostfile”. |
|
Get the value of “Number of Processors”. |
|
Set the value of “Number of Processors”. |
|
Get the value of “Number of Threads Per Process”. |
|
Set the value of “Number of Threads Per Process”. |
|
Get “Processing Unit” as a string. |
|
Set the value of “Processing Unit”. |
|
Get a list of all possible values for “Processing Unit”. |
|
Get “Slicing Direction” as a string. |
|
Set the value of “Slicing Direction”. |
|
Get a list of all possible values for “Slicing Direction”. |
|
Get the value of “Target Gpu”. |
|
Set the value of “Target Gpu”. |
Import detail#
from ansys.rocky.app.ra_mpi_settings import RAMpiSettings
Method detail#
- classmethod RAMpiSettings.GetWrappedClass() type[rocky30.models.solver.general_settings.MpiSettings]#
- RAMpiSettings.SetExtraParams(value: str) None#
Set the value of “Extra Params”.
- Parameters:
value – The value to set.
- RAMpiSettings.SetHeterogeneous(value: bool) None#
Set the value of “Heterogeneous”.
- Parameters:
value – The value to set.
- RAMpiSettings.SetHostfile(value: str) None#
Set the value of “Hostfile”.
- Parameters:
value – The value to set.
- RAMpiSettings.SetNumberOfProcessors(value: str | int) None#
Set the value of “Number of Processors”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAMpiSettings.SetNumberOfThreadsPerProcess(value: str | int) None#
Set the value of “Number of Threads Per Process”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAMpiSettings.GetProcessingUnit() str#
Get “Processing Unit” as a string.
- Returns:
The returned value will be one of [‘CPU’, ‘GPU’, ‘MULTI_GPU’].
- RAMpiSettings.SetProcessingUnit(value: str) None#
Set the value of “Processing Unit”.
- Parameters:
value – The value to set. Must be one of [‘CPU’, ‘GPU’, ‘MULTI_GPU’].
- Raises:
RockyApiError – If value is not a valid “Processing Unit” option.
- RAMpiSettings.GetValidProcessingUnitValues() list[str]#
Get a list of all possible values for “Processing Unit”.
- Returns:
The returned list is [‘CPU’, ‘GPU’, ‘MULTI_GPU’].
- RAMpiSettings.GetSlicingDirection() str#
Get “Slicing Direction” as a string.
- Returns:
The returned value will be one of [‘X_Parallel’, ‘Y_Parallel’, ‘Z_Parallel’].
- RAMpiSettings.SetSlicingDirection(value: str) None#
Set the value of “Slicing Direction”.
- Parameters:
value – The value to set. Must be one of [‘X_Parallel’, ‘Y_Parallel’, ‘Z_Parallel’].
- Raises:
RockyApiError – If value is not a valid “Slicing Direction” option.