From 44da7a3b9d2815a031f95758bcf0b9284b996958 Mon Sep 17 00:00:00 2001 From: Rohit Santhanam Date: Fri, 17 Sep 2021 16:19:03 +0000 Subject: [PATCH] Disable specific subtests that fail on HIP due to non-functional device side malloc/free (on HIP). --- test/gpu_example.cu | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/gpu_example.cu b/test/gpu_example.cu index 554fc9b7c..9bc34e532 100644 --- a/test/gpu_example.cu +++ b/test/gpu_example.cu @@ -111,20 +111,26 @@ EIGEN_DECLARE_TEST(gpu_example) // Call subtests with different sized/typed inputs. CALL_SUBTEST( test_add(Eigen::Vector3f()) ); CALL_SUBTEST( test_add(Eigen::Matrix3d()) ); +#if !defined(EIGEN_USE_HIP) // FIXME CALL_SUBTEST( test_add(Eigen::MatrixX(10, 10)) ); - +#endif + CALL_SUBTEST( test_add(Eigen::Array44f()) ); +#if !defined(EIGEN_USE_HIP) CALL_SUBTEST( test_add(Eigen::ArrayXd(20)) ); CALL_SUBTEST( test_add(Eigen::ArrayXXi(13, 17)) ); - +#endif + CALL_SUBTEST( test_multiply(Eigen::Matrix3d(), Eigen::Matrix3d(), Eigen::Matrix3d()) ); +#if !defined(EIGEN_USE_HIP) CALL_SUBTEST( test_multiply(Eigen::MatrixX(10, 10), Eigen::MatrixX(10, 10), Eigen::MatrixX()) ); CALL_SUBTEST( test_multiply(Eigen::MatrixXf(12, 1), Eigen::MatrixXf(1, 32), Eigen::MatrixXf()) ); +#endif } }