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 gpuMemset2DAsync hipMemset2DAsync
45 #define gpuMemcpyAsync hipMemcpyAsync
46 #define gpuMemcpyDeviceToDevice hipMemcpyDeviceToDevice
47 #define gpuMemcpyDeviceToHost hipMemcpyDeviceToHost
48 #define gpuMemcpyHostToDevice hipMemcpyHostToDevice
49 #define gpuStreamQuery hipStreamQuery
50 #define gpuSharedMemConfig hipSharedMemConfig
51 #define gpuDeviceSetSharedMemConfig hipDeviceSetSharedMemConfig
52 #define gpuStreamSynchronize hipStreamSynchronize
53 #define gpuDeviceSynchronize hipDeviceSynchronize
54 #define gpuMemcpy hipMemcpy
58 #define gpuStream_t cudaStream_t
59 #define gpuDeviceProp_t cudaDeviceProp
60 #define gpuError_t cudaError_t
61 #define gpuSuccess cudaSuccess
62 #define gpuErrorNotReady cudaErrorNotReady
63 #define gpuGetDeviceCount cudaGetDeviceCount
64 #define gpuGetLastError cudaGetLastError
65 #define gpuPeekAtLastError cudaPeekAtLastError
66 #define gpuGetErrorName cudaGetErrorName
67 #define gpuGetErrorString cudaGetErrorString
68 #define gpuGetDeviceProperties cudaGetDeviceProperties
69 #define gpuStreamDefault cudaStreamDefault
70 #define gpuGetDevice cudaGetDevice
71 #define gpuSetDevice cudaSetDevice
72 #define gpuMalloc cudaMalloc
73 #define gpuFree cudaFree
74 #define gpuMemsetAsync cudaMemsetAsync
75 #define gpuMemset2DAsync cudaMemset2DAsync
76 #define gpuMemcpyAsync cudaMemcpyAsync
77 #define gpuMemcpyDeviceToDevice cudaMemcpyDeviceToDevice
78 #define gpuMemcpyDeviceToHost cudaMemcpyDeviceToHost
79 #define gpuMemcpyHostToDevice cudaMemcpyHostToDevice
80 #define gpuStreamQuery cudaStreamQuery
81 #define gpuSharedMemConfig cudaSharedMemConfig
82 #define gpuDeviceSetSharedMemConfig cudaDeviceSetSharedMemConfig
83 #define gpuStreamSynchronize cudaStreamSynchronize
84 #define gpuDeviceSynchronize cudaDeviceSynchronize
85 #define gpuMemcpy cudaMemcpy
92 #if defined(EIGEN_HIP_DEVICE_COMPILE)
94 #define gpu_assert(COND)
96 #define gpu_assert(COND) eigen_assert(COND)