|
VTK
9.5.20251217
|
Utility functions for working with Viskores device arrays. More...
#include <vtkmDataArrayUtilities.h>
Static Public Member Functions | |
| static bool | IsDeviceAdapterAvailable (int8_t deviceAdapterId) |
| Check if a Viskores device adapter is available to use. | |
| static bool | IsDevicePointer (const void *ptr, int8_t &deviceAdapterId) |
| Get if the pointer is a device pointer and the device adapter id, which can one of the following values: | |
| static bool | IsCudaDevicePointer (const void *ptr) |
| Check if the pointer is a CUDA device pointer. | |
| static bool | IsHipDevicePointer (const void *ptr) |
| Check if the pointer is a HIP device pointer. | |
Utility functions for working with Viskores device arrays.
This class provides utility functions to check for device adapter availability and to check if a pointer is a device pointer for supported device adapters.
Definition at line 22 of file vtkmDataArrayUtilities.h.
|
static |
Check if a Viskores device adapter is available to use.
|
static |
Get if the pointer is a device pointer and the device adapter id, which can one of the following values:
VISKORES_DEVICE_ADAPTER_SERIAL = 1 VISKORES_DEVICE_ADAPTER_CUDA = 2 VISKORES_DEVICE_ADAPTER_KOKKOS = 5
|
static |
Check if the pointer is a CUDA device pointer.
|
static |
Check if the pointer is a HIP device pointer.