VTK  9.6.1
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.
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.

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

◆ IsDeviceAdapterAvailable()

bool vtkmDataArrayUtilities::IsDeviceAdapterAvailable ( int8_t deviceAdapterId)
static

Check if a Viskores device adapter is available to use.

◆ IsDevicePointer()

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

◆ IsCudaDevicePointer()

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

Check if the pointer is a CUDA device pointer.

◆ IsHipDevicePointer()

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: