From d3f52debc6c45d1f26bb9406207ebc5a8638a429 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Mon, 13 Oct 2014 17:18:26 +0200 Subject: Make cuda_basic test compile again by adding lots of EIGEN_DEVICE_FUNC. Although the test passes now, there might still be some missing. --- test/cuda_basic.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/cuda_basic.cu b/test/cuda_basic.cu index 4c7e96c10..300bced02 100644 --- a/test/cuda_basic.cu +++ b/test/cuda_basic.cu @@ -65,7 +65,7 @@ struct redux { }; template -struct prod { +struct prod_test { EIGEN_DEVICE_FUNC void operator()(int i, const typename T1::Scalar* in, typename T1::Scalar* out) const { @@ -125,8 +125,8 @@ void test_cuda_basic() CALL_SUBTEST( run_and_compare_to_cuda(redux(), nthreads, in, out) ); CALL_SUBTEST( run_and_compare_to_cuda(redux(), nthreads, in, out) ); - CALL_SUBTEST( run_and_compare_to_cuda(prod(), nthreads, in, out) ); - CALL_SUBTEST( run_and_compare_to_cuda(prod(), nthreads, in, out) ); + CALL_SUBTEST( run_and_compare_to_cuda(prod_test(), nthreads, in, out) ); + CALL_SUBTEST( run_and_compare_to_cuda(prod_test(), nthreads, in, out) ); CALL_SUBTEST( run_and_compare_to_cuda(diagonal(), nthreads, in, out) ); CALL_SUBTEST( run_and_compare_to_cuda(diagonal(), nthreads, in, out) ); -- cgit v1.2.3