Skip to content

Commit

Permalink
disable CUDA RDP tests if no CUDA found
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Jul 8, 2024
1 parent 05cdfaf commit 1f0d692
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/recon_test/test_priors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ RelativeDifferencePriorTests<RDP>::run_tests()
}
}

#ifdef STIR_WITH_CUDA
/*!
\brief tests for CudaRelativeDifferencePrior
\ingroup recontest
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f0d692

Please sign in to comment.