aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/gpu_common.h
diff options
context:
space:
mode:
authorGravatar Deven Desai <deven.desai.amd@gmail.com>2018-08-30 20:22:16 +0000
committerGravatar Deven Desai <deven.desai.amd@gmail.com>2018-08-30 20:22:16 +0000
commitc64fe9ea1f9f5943864cd9ca27d3fcca07453f82 (patch)
tree7ddf920d5e51d66de6e8b995cc8523aa593bb561 /test/gpu_common.h
parent8b3d9ed081fc5d4870290649853b19cb5179546e (diff)
Updates to fix HIP-clang specific compile errors.
Compiling the eigen unittests with hip-clang (HIP with clang as the underlying compiler instead of hcc or nvcc), results in compile errors. The changes in this commit fix those compile errors. The main change is to convert a few instances of "__device__" to "EIGEN_DEVICE_FUNC"
Diffstat (limited to 'test/gpu_common.h')
-rw-r--r--test/gpu_common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gpu_common.h b/test/gpu_common.h
index 3aac49e96..79d4ea694 100644
--- a/test/gpu_common.h
+++ b/test/gpu_common.h
@@ -61,9 +61,9 @@ void run_on_gpu(const Kernel& ker, int n, const Input& in, Output& out)
gpuDeviceSynchronize();
#ifdef EIGEN_USE_HIP
- hipLaunchKernelGGL(run_on_gpu_meta_kernel<Kernel,
- typename std::decay<decltype(*d_in)>::type,
- typename std::decay<decltype(*d_out)>::type>,
+ hipLaunchKernelGGL(HIP_KERNEL_NAME(run_on_gpu_meta_kernel<Kernel,
+ typename std::decay<decltype(*d_in)>::type,
+ typename std::decay<decltype(*d_out)>::type>),
dim3(Grids), dim3(Blocks), 0, 0, ker, n, d_in, d_out);
#else
run_on_gpu_meta_kernel<<<Grids,Blocks>>>(ker, n, d_in, d_out);