ROCm / hipSPARSE

ROCm SPARSE marshalling library
https://rocm.docs.amd.com/projects/hipSPARSE/en/latest/
MIT License
66 stars 41 forks source link

Fix failing cusparse 12.4 tests #484

Closed jsandham closed 3 months ago

jsandham commented 3 months ago

if(!defined(CUDART_VERSION) || (CUDART_VERSION >= 11010 && CUDART_VERSION < 12000))

TEST(axpyi_bad_arg, axpyi_float)

endif //<------------------- This should be moved to be after the call to INSTANTIATE_TEST_SUITE_P

INSTANTIATE_TEST_SUITE_P(...)

Then if using CUDART_VERSION >= 12000, there are no tests to instaniate but we are trying to. This causes googletest errors. By placing #endif after INSTANTIATE_TEST_SUITE_P, we only try and instantiate tests if we have some. This fix constitutes most of the file changes in this PR.