Loading...
Searching...
No Matches
Go to the documentation of this file.
11#if defined(EIGEN_USE_GPU) && !defined(EIGEN_CXX11_TENSOR_GPU_HIP_CUDA_DEFINES_H)
12#define EIGEN_CXX11_TENSOR_GPU_HIP_CUDA_DEFINES_H
25#if defined(EIGEN_USE_HIP)
27#define gpuStream_t hipStream_t
28#define gpuDeviceProp_t hipDeviceProp_t
29#define gpuError_t hipError_t
30#define gpuSuccess hipSuccess
31#define gpuErrorNotReady hipErrorNotReady
32#define gpuGetDeviceCount hipGetDeviceCount
33#define gpuGetLastError hipGetLastError
34#define gpuPeekAtLastError hipPeekAtLastError
35#define gpuGetErrorName hipGetErrorName
36#define gpuGetErrorString hipGetErrorString
37#define gpuGetDeviceProperties hipGetDeviceProperties
38#define gpuStreamDefault hipStreamDefault
39#define gpuGetDevice hipGetDevice
40#define gpuSetDevice hipSetDevice
41#define gpuMalloc hipMalloc
42#define gpuFree hipFree
43#define gpuMemsetAsync hipMemsetAsync
44#define gpuMemcpyAsync hipMemcpyAsync
45#define gpuMemcpyDeviceToDevice hipMemcpyDeviceToDevice
46#define gpuMemcpyDeviceToHost hipMemcpyDeviceToHost
47#define gpuMemcpyHostToDevice hipMemcpyHostToDevice
48#define gpuStreamQuery hipStreamQuery
49#define gpuSharedMemConfig hipSharedMemConfig
50#define gpuDeviceSetSharedMemConfig hipDeviceSetSharedMemConfig
51#define gpuStreamSynchronize hipStreamSynchronize
52#define gpuDeviceSynchronize hipDeviceSynchronize
53#define gpuMemcpy hipMemcpy
57#define gpuStream_t cudaStream_t
58#define gpuDeviceProp_t cudaDeviceProp
59#define gpuError_t cudaError_t
60#define gpuSuccess cudaSuccess
61#define gpuErrorNotReady cudaErrorNotReady
62#define gpuGetDeviceCount cudaGetDeviceCount
63#define gpuGetLastError cudaGetLastError
64#define gpuPeekAtLastError cudaPeekAtLastError
65#define gpuGetErrorName cudaGetErrorName
66#define gpuGetErrorString cudaGetErrorString
67#define gpuGetDeviceProperties cudaGetDeviceProperties
68#define gpuStreamDefault cudaStreamDefault
69#define gpuGetDevice cudaGetDevice
70#define gpuSetDevice cudaSetDevice
71#define gpuMalloc cudaMalloc
72#define gpuFree cudaFree
73#define gpuMemsetAsync cudaMemsetAsync
74#define gpuMemcpyAsync cudaMemcpyAsync
75#define gpuMemcpyDeviceToDevice cudaMemcpyDeviceToDevice
76#define gpuMemcpyDeviceToHost cudaMemcpyDeviceToHost
77#define gpuMemcpyHostToDevice cudaMemcpyHostToDevice
78#define gpuStreamQuery cudaStreamQuery
79#define gpuSharedMemConfig cudaSharedMemConfig
80#define gpuDeviceSetSharedMemConfig cudaDeviceSetSharedMemConfig
81#define gpuStreamSynchronize cudaStreamSynchronize
82#define gpuDeviceSynchronize cudaDeviceSynchronize
83#define gpuMemcpy cudaMemcpy
90#if defined(EIGEN_HIP_DEVICE_COMPILE)
92#define gpu_assert(COND)
94#define gpu_assert(COND) assert(COND)