VTK  9.7.1
Static Public Member Functions | List of all members
vtkmDataArrayUtilities Class Reference

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. More...
 
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: More...
 
static bool IsCudaDevicePointer (const void *ptr)
 Check if the pointer is a CUDA device pointer. More...
 
static bool IsHipDevicePointer (const void *ptr)
 Check if the pointer is a HIP device pointer. More...
 

Detailed Description

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.

Member Function Documentation

static bool vtkmDataArrayUtilities::IsDeviceAdapterAvailable ( int8_t  deviceAdapterId)
static

Check if a Viskores device adapter is available to use.

static bool vtkmDataArrayUtilities::IsDevicePointer ( const void *  ptr,
int8_t &  deviceAdapterId 
)
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 bool vtkmDataArrayUtilities::IsCudaDevicePointer ( const void *  ptr)
static

Check if the pointer is a CUDA device pointer.

static bool vtkmDataArrayUtilities::IsHipDevicePointer ( const void *  ptr)
static

Check if the pointer is a HIP device pointer.


The documentation for this class was generated from the following file: