From 0a4e188f0053d90af83fcfbe0799fdff6ad36dbc Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Thu, 4 Jan 2018 21:23:44 -0500 Subject: [PATCH] Make AssertCuda use Assert instead of AssertThrow We used AssertThrow instead of Assert in AssertCuda because of a bug that has now been fixed. --- include/deal.II/base/exceptions.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 2f36c5320d..cdc1d5013c 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1244,10 +1244,8 @@ namespace StandardExceptions * @ingroup Exceptions * @author Bruno Turcksin, 2016 */ -// For now use AssertThrow instead of Assert because macros are not passed -// correctly to nvcc. -#define AssertCuda(error_code) AssertThrow(error_code == cudaSuccess, \ - dealii::ExcCudaError(cudaGetErrorString(error_code))) +#define AssertCuda(error_code) Assert(error_code == cudaSuccess, \ + dealii::ExcCudaError(cudaGetErrorString(error_code))) #endif using namespace StandardExceptions; -- 2.39.5