rockverse.configure.Config#

class rockverse.configure.Config[source]#

Manages runtime settings.

Attributes#

mpi_rank

Returns the rank of the calling process in the MPI communicator.

mpi_nprocs

Returns the total number of processes in the MPI communicator.

processor_name

Returns the name of the processor running MPI.

mpi_comm

Returns the MPI communicator object.

available_gpus

Returns the list of all GPUs available to the processor in processor_name.

Methods#

print_available_gpus()

Prints the list of available GPUs.

print_selected_gpus()

Prints the list of user-selected GPUs.

rank_select_gpu()

Selects the GPU to be used by the current MPI process at runtime.

print_rank_selected_gpu()

Prints the GPU selected for use by the current MPI process.