Required
cores_per_simulation| Type: | int |
| Description: | The number of cores per simulation. |
class MPIExecutionConfiguration(
salvus.flow.utils.serialization_helpers.SerializationMixin
):
def __init__(
self,
cores_per_simulation: int,
threads_per_core: int = 1,
mpirun_binary: pathlib.Path,
salvus_binary: pathlib.Path,
tmp_directory: pathlib.Path,
use_gpus: bool,
environment_variables: dict[str, str] | None = None,
run_in_process: bool = False,
target_memory_usage_in_percent: float | None = None,
): ...| Type: | int |
| Description: | The number of cores per simulation. |
| Type: | int |
| Default value: | 1 |
| Description: | The number of threads per core. |
| Type: | pathlib.Path |
| Description: | The mpirun binary to use. |
| Type: | pathlib.Path |
| Description: | The Salvus binary to use. |
| Type: | pathlib.Path |
| Description: | The temporary directory to use. Best use some local scratch system, e.g. a fast node-local storage. |
| Type: | bool |
| Description: | Whether to use GPUs. |
| Type: | dict[str, str] | None |
| Default value: | None |
| Description: | Optional environment variables to set for the execution. |
| Type: | bool |
| Default value: | False |
| Description: | Whether to run Salvus in-process. (WIP right now). |
| Type: | float | None |
| Default value: | None |
| Description: | Optional target memory usage in percent. If set, the memory_per_rank_in_MB will be set to the value that targets this memory usage. |
def from_json(d: builtins.dict) -> Any: ...| Type: | builtins.dict |
| Description: | Dictionary containing its init parameters and a few other things. |
def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...| Type: | types |
| Default value: | None |
| Description: | Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file. |
| Type: | types |
| Default value: | None |
| Description: | Execution timer. |
| Type: | bool |
| Default value: | False |
| Description: | Log timings to the logger. |
| Type: | types |
| Default value: | None |
| Description: | MPI communicator, if any. |
class RemoteCommand(builtins.object):
def __init__(
self, command: str, execute_with_mpi: bool, ranks: int | None = None
) -> None: ...| Type: | str |
| Description: | The command to be executed., |
| Type: | bool |
| Description: | True if it should be run with MPI. |
| Type: | int | None |
| Default value: | None |
| Description: | How many ranks to execute with, if run with MPI. |
class SiteConfig(salvus.flow.utils.serialization_helpers.SerializationMixin):
def __init__(
self,
site_name: str,
ranks_per_job: salvus._core.types.int_ | None = None,
wall_time_in_seconds_per_job: salvus._core.types.float_ | None = None,
memory_per_rank_in_MB: salvus._core.types.float_ | None = None,
max_events_per_job_submission: salvus._core.types.int_ = 0,
verbosity: int = 0,
skip_validation: bool = False,
): ...| Type: | str |
| Description: | The site to run on. |
| Type: | salvus._core.types.int_ | None |
| Default value: | None |
| Description: | The number of ranks to run with. Defaults to the site's configuration value. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | The wall time in seconds if the site requires one. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Optional memory settings for the site. |
| Type: | salvus._core.types.int_ |
| Default value: | 0 |
| Description: | Optional chunkwise job submission. If set to a positive number, simulations will be launched in chunks. |
| Type: | int |
| Default value: | 0 |
| Description: | The verbosity level. |
| Type: | bool |
| Default value: | False |
| Description: | Skip validation of the site. |
int)-The number of ranks per job.def from_json(d: dict) -> SiteConfig: ...| Type: | dict |
| Description: | JSON dictionary of the inverse problem. |
def to_json(self, skip_validation: bool | None = None) -> dict: ...| Type: | bool | None |
| Default value: | None |
| Description: | Skip object validation prior to writing. |