From 63185be8b240ee1a9ef476af2fc06676d3d89fe0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 12 Jul 2018 17:03:14 +0200 Subject: Disable eigenvalues test for clang-cuda --- test/gpu_basic.cu | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'test/gpu_basic.cu') diff --git a/test/gpu_basic.cu b/test/gpu_basic.cu index 897834dff..285b87910 100644 --- a/test/gpu_basic.cu +++ b/test/gpu_basic.cu @@ -129,7 +129,7 @@ struct eigenvalues_direct { Map res(out+i*Vec::MaxSizeAtCompileTime); T A = M*M.adjoint(); SelfAdjointEigenSolver eig; - eig.computeDirect(M); + eig.computeDirect(A); res = eig.eigenvalues(); } }; @@ -145,7 +145,7 @@ struct eigenvalues { Map res(out+i*Vec::MaxSizeAtCompileTime); T A = M*M.adjoint(); SelfAdjointEigenSolver eig; - eig.compute(M); + eig.compute(A); res = eig.eigenvalues(); } }; @@ -202,11 +202,14 @@ void test_gpu_basic() CALL_SUBTEST( run_and_compare_to_gpu(matrix_inverse(), nthreads, in, out) ); CALL_SUBTEST( run_and_compare_to_gpu(matrix_inverse(), nthreads, in, out) ); -#if !defined(EIGEN_USE_HIP) - // FIXME - // These subtests result in a linking error on the HIP platform CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues_direct(), nthreads, in, out) ); CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues_direct(), nthreads, in, out) ); + +#if defined(__NVCC__) + // FIXME + // These subtests compiles only with nvcc and fail with HIPCC and clang-cuda CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues(), nthreads, in, out) ); + typedef Matrix Matrix6f; + CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues(), nthreads, in, out) ); #endif } -- cgit v1.2.3