mpi_array.benchmarks.bench_creation.CommsAllocBench

class mpi_array.benchmarks.bench_creation.CommsAllocBench[source]

Bases: mpi_array.benchmarks.bench_creation.CreateBench

Benchmarks for mpi_array.comms.LocaleComms.alloc_locale_buffer().

Methods

__init__() Initialise, set module to None.
free(a) See free_mpi_array_obj().
free_mpi_array_obj(a) Free MPI communicators and MPI windows for the given object.
get_globale_shape(locale_shape) Returns a globale array shape for the given shape of the locale array.
setup(shape) Import mpi_array module and assign to self.module.
teardown(shape) Free locale_comms communicators.
time_alloc_locale_buffer(shape) Time call of mpi_array.comms.LocaleComms.alloc_locale_buffer().

Attributes

cart_comm_dims
goal_time
locale_comms A mpi_array.comms.CartLocaleComms instance used to allocate memory.
module The module used to create array instances.
param_names
params The set of array-shape parameters.
repeat
warmup_time