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

__init__(architecture: str, tqdm: str)[source]

Initializing configuration class.

Methods

__init__(architecture, tqdm)

Initializing configuration class.

Attributes

MPI_loaded

Returns wether MPI packages are loaded or not

architecture

Returns the architecture

is_CPU

Returns wether CPU is the architecture or not

is_GPU

Returns wether GPU is the architecture or not

parallel_size

Returns the parallel size over CPU or GPU

tqdm_requested

Returns wether tqdm was requested or not

viz_loaded

Returns wether visualization packages are loaded or not