From c64fe9ea1f9f5943864cd9ca27d3fcca07453f82 Mon Sep 17 00:00:00 2001 From: Deven Desai Date: Thu, 30 Aug 2018 20:22:16 +0000 Subject: 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" --- test/gpu_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/gpu_common.h') 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::type, - typename std::decay::type>, + hipLaunchKernelGGL(HIP_KERNEL_NAME(run_on_gpu_meta_kernel::type, + typename std::decay::type>), dim3(Grids), dim3(Blocks), 0, 0, ker, n, d_in, d_out); #else run_on_gpu_meta_kernel<<>>(ker, n, d_in, d_out); -- cgit v1.2.3