noether.core.utils.platform¶
Submodules¶
Functions¶
Return the command with which the script was called. |
|
Logs system information like OS, CUDA version, and Python version. |
|
|
Get the number of CPUs to use per device. |
Get the total number of CPUs visible to this process. |
Package Contents¶
- noether.core.utils.platform.get_cli_command()¶
Return the command with which the script was called.
Attention: This assumes the script was started with python (not python3 or similar).
- Returns:
The command with which the script was called.
- Return type:
- noether.core.utils.platform.log_system_info()¶
Logs system information like OS, CUDA version, and Python version.
- Return type:
None
- noether.core.utils.platform.get_fair_cpu_count(reserve_for_main=1)¶
Get the number of CPUs to use per device.
If SLURM is used, the number of CPUs per task is used. Otherwise, CPUs are divided equally across devices (GPUs or a single CPU device).