From 1f0d692619232867db4a5fec6d22850d862ac884 Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Mon, 8 Jul 2024 09:36:47 +0100 Subject: [PATCH] disable CUDA RDP tests if no CUDA found --- src/recon_test/test_priors.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/recon_test/test_priors.cxx b/src/recon_test/test_priors.cxx index 4831afd07..30965ace7 100644 --- a/src/recon_test/test_priors.cxx +++ b/src/recon_test/test_priors.cxx @@ -534,6 +534,7 @@ RelativeDifferencePriorTests::run_tests() } } +#ifdef STIR_WITH_CUDA /*! \brief tests for CudaRelativeDifferencePrior \ingroup recontest @@ -584,6 +585,7 @@ CudaRelativeDifferencePriorTests::run_specific_tests(const std::string& test_nam const auto norm_org = norm(non_cuda_grad_sptr->begin_all(), non_cuda_grad_sptr->end_all()); check_if_less(norm_diff, norm_org * 0.001, "CUDA - non-CUDA RDP gradient norm"); } +#endif // STIR_WITH_CUDA /*! \brief tests for PLSPrior