aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Antonio Sanchez <cantonios@google.com>2021-02-25 08:04:05 -0800
committerGravatar Antonio Sanchez <cantonios@google.com>2021-02-25 08:04:05 -0800
commitecb7b19dfa6c4bbf7a4068e114a1c86aa88908fe (patch)
treeeb84463e3589fd99e4dba993fff4f6ce340432d1 /test
parent6eebe97babeb861cff713ec290ba9c7dec89b865 (diff)
Disable new/delete test for HIP
Diffstat (limited to 'test')
-rw-r--r--test/gpu_basic.cu4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gpu_basic.cu b/test/gpu_basic.cu
index 1935f0bc6..b2e657e72 100644
--- a/test/gpu_basic.cu
+++ b/test/gpu_basic.cu
@@ -409,6 +409,9 @@ EIGEN_DECLARE_TEST(gpu_basic)
// (aka 'ArrayBase<Eigen::Replicate<Eigen::Array<float, 4, 1, 0, 4, 1>, -1, -1> >') has protected default constructor
CALL_SUBTEST( run_and_compare_to_gpu(replicate<Array4f>(), nthreads, in, out) );
CALL_SUBTEST( run_and_compare_to_gpu(replicate<Array33f>(), nthreads, in, out) );
+
+ // HIP does not support new/delete on device.
+ CALL_SUBTEST( run_and_compare_to_gpu(alloc_new_delete<Vector3f>(), nthreads, in, out) );
#endif
CALL_SUBTEST( run_and_compare_to_gpu(redux<Array4f>(), nthreads, in, out) );
@@ -438,5 +441,4 @@ EIGEN_DECLARE_TEST(gpu_basic)
typedef Matrix<float,6,6> Matrix6f;
CALL_SUBTEST( run_and_compare_to_gpu(eigenvalues<Matrix6f>(), nthreads, in, out) );
#endif
- CALL_SUBTEST( run_and_compare_to_gpu(alloc_new_delete<Vector3f>(), nthreads, in, out) );
}