mpi_array.benchmarks.bench_creation.NumpyCreateBench

class mpi_array.benchmarks.bench_creation.NumpyCreateBench[source]

Bases: mpi_array.benchmarks.bench_creation.CreateBench

Comparison benchmarks for numpy.empty(), numpy.zeros() etc.

Methods

__init__() Initialise, set module to None.
free(a) Clean up array resources, over-ridden in sub-classes.
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 numpy module and assign to module.
time_empty(shape) Time uninitialised array creation.
time_full(shape) Time value-initialised array creation.
time_ones(shape) Time one-initialised array creation.
time_zeros(shape) Time zero-initialised array creation.

Attributes

cart_comm_dims
goal_time
module The module used to create array instances.
param_names
params
repeat
warmup_time