|
Smith
0.1
Smith is an implicit thermal structural mechanics simulation code.
|
Namespace for methods involving accelerator-enabled builds. More...
Functions | |
| void | initializeDevice () |
| Initializes the device (GPU) More... | |
| void | terminateDevice () |
| Cleans up the device, if applicable. | |
| template<ExecutionSpace exec, typename T > | |
| std::shared_ptr< T[]> | make_shared_array (std::size_t n) |
create shared_ptr to an array of n values of type T, either on the host or device More... | |
| template<ExecutionSpace exec, typename... T> | |
| auto | make_shared_arrays (std::size_t n) |
create shared_ptr to an array of n values of type T, either on the host or device More... | |
Namespace for methods involving accelerator-enabled builds.
| void smith::accelerator::initializeDevice | ( | ) |
Initializes the device (GPU)
Definition at line 24 of file accelerator.cpp.
| std::shared_ptr<T[]> smith::accelerator::make_shared_array | ( | std::size_t | n | ) |
create shared_ptr to an array of n values of type T, either on the host or device
| T | the type of the value to be stored in the array |
| exec | the memory space where the data lives |
| n | how many entries to allocate in the array |
Definition at line 269 of file accelerator.hpp.
| auto smith::accelerator::make_shared_arrays | ( | std::size_t | n | ) |
create shared_ptr to an array of n values of type T, either on the host or device
| T | the type of the value to be stored in the array |
| exec | the memory space where the data lives |
| n | how many entries to allocate in the array |
Definition at line 292 of file accelerator.hpp.