Skip to content

decomposition

determine_rank_is_compiling(rank, size)

Determines if a rank needs to be a compiling one.

Parameters:

Name Type Description Default
rank int

current rank

required
size int

size of the communicator

required

Returns:

Name Type Description
bool bool

True if the rank is a compiling one

block_waiting_for_compilation(comm, compilation_config)

Block moving on until an ok is received from the compiling rank.

Parameters:

Name Type Description Default
comm Comm

communicator over which the ok is sent

required
compilation_config CompilationConfig

holding communicator and rank information

required

unblock_waiting_tiles(comm)

Sends a message to all the ranks waiting for compilation to finish.

Parameters:

Name Type Description Default
comm Comm

communicator over which the ok is sent

required

check_cached_path_exists(cache_filepath)

build_cache_path(config)

Generate the GT-Cache path from the config.

Parameters:

Name Type Description Default
config CompilationConfig

stencil-config object at post-init state

required

Returns:

Type Description
tuple[str, str]

tuple[str, str]: path and individual rank string

set_distributed_caches(config)

In Run mode, check required file then point current rank cache to source cache.