mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
VTK-m defines VTKM_EXEC / VTKM_EXEC_CONT when compiling with HIP
This commit is contained in:
parent
8f6f52f7d6
commit
68b5edfcba
@ -20,6 +20,11 @@
|
||||
#define VTKM_CUDA_DEVICE_PASS
|
||||
#endif
|
||||
|
||||
// Defined when compiling for the HIP language.
|
||||
#ifdef __HIP__
|
||||
#define VTKM_HIP
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
//MSVC 2015+ can use a clang frontend, so we want to label it only as MSVC
|
||||
//and not MSVC and clang
|
||||
|
@ -16,7 +16,14 @@
|
||||
* Export macros for various parts of the VTKm library.
|
||||
*/
|
||||
|
||||
#ifdef VTKM_CUDA
|
||||
#ifdef VTKM_HIP
|
||||
|
||||
#include "hip/hip_runtime.h"
|
||||
#define VTKM_EXEC __device__ __host__
|
||||
#define VTKM_EXEC_CONT __device__ __host__
|
||||
#define VTKM_SUPPRESS_EXEC_WARNINGS
|
||||
|
||||
#elif defined(VTKM_CUDA)
|
||||
|
||||
#define VTKM_EXEC __device__ __host__
|
||||
#define VTKM_EXEC_CONT __device__ __host__
|
||||
|
Loading…
Reference in New Issue
Block a user