vecmem 1.14.0
|
Namespace for types that should not be used directly by clients. More...
Classes | |
class | run_on_device |
Helper functor used for running a piece of code on a given device. More... | |
class | select_device |
Class with RAII mechanism for selecting a HIP device. More... | |
struct | stream_owner |
Struct responsible for managing the lifetime of a HIP stream. More... | |
Functions | |
int | get_device () |
Helper function for determining the "currently active device". | |
std::string | get_device_name (int device) |
Get a "fully qualified" name for a given HIP device. | |
hipStream_t | get_stream (const stream_wrapper &stream) |
Get a concrete hipStream_t object out of our wrapper. | |
void | throw_error (hipError_t errorCode, const char *expression, const char *file, int line) |
Function used to print and throw a user-readable error if something breaks. | |
Namespace for types that should not be used directly by clients.
int vecmem::hip::details::get_device | ( | ) |
Helper function for determining the "currently active device".
Note that calling the function on a machine with no HIP device does not result in an error, the function just returns 0 in that case.
std::string vecmem::hip::details::get_device_name | ( | int | device | ) |
Get a "fully qualified" name for a given HIP device.
This function provides a uniform way for printing the names of the devices that various VecMem objects would be interacting with.
device | The device ID that the HIP runtime assigned |