17 namespace accelerator {
21 std::unique_ptr<mfem::Device> device;
26 SLIC_ERROR_ROOT_IF(device,
"smith::accelerator::initializeDevice cannot be called more than once");
27 device = std::make_unique<mfem::Device>();
28 #if defined(MFEM_USE_CUDA) && defined(SMITH_USE_CUDA_KERNEL_EVALUATION)
29 device->Configure(
"cuda");
This file contains the interface used for initializing/terminating any hardware accelerator-related f...
This file contains the all the necessary functions and macros required for logging as well as a helpe...
void initializeDevice()
Initializes the device (GPU)
void terminateDevice()
Cleans up the device, if applicable.
Accelerator functionality.