aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/gpu_basic.cu
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-07-12 17:03:14 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-07-12 17:03:14 +0200
commit63185be8b240ee1a9ef476af2fc06676d3d89fe0 (patch)
tree553c55413878028df1b8b253e3c9d011fa0140cf /test/gpu_basic.cu
parentbec013b2c965880a6dc50a0d3a12b52d07b30352 (diff)
Disable eigenvalues test for clang-cuda
Diffstat (limited to 'test/gpu_basic.cu')
-rw-r--r--test/gpu_basic.cu13
1 files changed, 8 insertions, 5 deletions
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<Vec> res(out+i*Vec::MaxSizeAtCompileTime);
T A = M*M.adjoint();
SelfAdjointEigenSolver<T> eig;
- eig.computeDirect(M);
+ eig.computeDirect(A);
res = eig.eigenvalues();
}
};
@@ -145,7 +145,7 @@ struct eigenvalues {
Map<Vec> res(out+i*Vec::MaxSizeAtCompileTime);
T A = M*M.adjoint();
SelfAdjointEigenSolver<T> 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<Matrix3f>(), nthreads, in, out) );
CALL_SUBTEST( run_and_compare_to_gpu(matrix_inverse<Matrix4f>(), 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<Matrix3f>(), nthreads, in, out) );
CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues_direct<Matrix2f>(), 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<Matrix4f>(), nthreads, in, out) );
+ typedef Matrix<float,6,6> Matrix6f;
+ CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues<Matrix6f>(), nthreads, in, out) );
#endif
}