grogupy.Config
- class grogupy.Config(architecture: str, tqdm: str)[source]
Configuration class of grogupy.
Contains the environment variables.
Parameters
- architecture: str
The architecture read from os.environ
- tqdm: str
tqdm request read from os.environ
Attributes
- viz_loaded: bool
Returns wether visualization packages are loaded or not
- MPI_loaded: bool
Returns wether MPI packages are loaded or not
- architecture: Literal[“CPU”, “GPU”]
Returns the architecture
- parallel_size: int
Returns the parallel size over CPU or GPU
- is_CPU: bool
Returns wether CPU is the architecture or not
- is_GPU: bool
Returns wether GPU is the architecture or not
- tqdm_requested: bool
Returns wether tqdm was requested or not
Methods
__init__(architecture, tqdm)Initializing configuration class.
Attributes
MPI_loadedReturns wether MPI packages are loaded or not
architectureReturns the architecture
is_CPUReturns wether CPU is the architecture or not
is_GPUReturns wether GPU is the architecture or not
parallel_sizeReturns the parallel size over CPU or GPU
tqdm_requestedReturns wether tqdm was requested or not
viz_loadedReturns wether visualization packages are loaded or not