sailfish.kernel.system

Functions for querying compute capabilities and configuring JIT builds.

Functions

configure_build([enable_openmp, ...])

Initiate the build_config module-level variable.

execution_context(mode[, device_id])

Return a context manager appropriate for the given exuction mode.

get_array_module(mode)

Return either the numpy or cupy module, depending on the value of mode.

log_system_info(mode)

Log relevant details of the system's compute capabilities.

measure_time(mode)

A context manager to measure the execution time of a piece of code.

num_devices(mode)