From f124f0796533081cb7b061c4aa8667df6ed58863 Mon Sep 17 00:00:00 2001 From: Deven Desai Date: Tue, 17 Jul 2018 14:16:48 -0400 Subject: applying EIGEN_DECLARE_TEST to *gpu* tests Also, a few minor fixes for GPU tests running in HIP mode. 1. Adding an include for hip/hip_runtime.h in the Macros.h file For HIP __host__ and __device__ are macros which are defined in hip headers. Their definitions need to be included before their use in the file. 2. Fixing the compile failure in TensorContractionGpu introduced by the commit to "Fuse computations into the Tensor contractions using output kernel" 3. Fixing a HIP/clang specific compile error by making the struct-member assignment explicit --- unsupported/test/cxx11_tensor_scan_gpu.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/test/cxx11_tensor_scan_gpu.cu') diff --git a/unsupported/test/cxx11_tensor_scan_gpu.cu b/unsupported/test/cxx11_tensor_scan_gpu.cu index f3e773db5..770a144f1 100644 --- a/unsupported/test/cxx11_tensor_scan_gpu.cu +++ b/unsupported/test/cxx11_tensor_scan_gpu.cu @@ -71,7 +71,7 @@ void test_gpu_cumsum(int m_size, int k_size, int n_size) } -void test_cxx11_tensor_scan_gpu() +EIGEN_DECLARE_TEST(cxx11_tensor_scan_gpu) { CALL_SUBTEST_1(test_gpu_cumsum(128, 128, 128)); CALL_SUBTEST_2(test_gpu_cumsum(128, 128, 128)); -- cgit v1.2.3