summaryrefslogtreecommitdiffstats
path: root/include/astra/cuda
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-11-16 11:38:02 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-11-16 14:06:29 +0100
commit1875e824a0358a7e7510b31f5e87708b304652bc (patch)
treef84269a4d7a5e4c6b54a76a89eb78fae694932fe /include/astra/cuda
parentd59619737b79ca3bd732fedaff6665e600ee1335 (diff)
downloadastra-1875e824a0358a7e7510b31f5e87708b304652bc.tar.gz
astra-1875e824a0358a7e7510b31f5e87708b304652bc.tar.bz2
astra-1875e824a0358a7e7510b31f5e87708b304652bc.tar.xz
astra-1875e824a0358a7e7510b31f5e87708b304652bc.zip
Remove reportCudaError function
Diffstat (limited to 'include/astra/cuda')
-rw-r--r--include/astra/cuda/2d/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/astra/cuda/2d/util.h b/include/astra/cuda/2d/util.h
index a7bba89..9eeb561 100644
--- a/include/astra/cuda/2d/util.h
+++ b/include/astra/cuda/2d/util.h
@@ -40,7 +40,7 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#define M_PI 3.14159265358979323846
#endif
-#define ASTRA_CUDA_ASSERT(err) do { if (err != cudaSuccess) { astraCUDA::reportCudaError(err); assert(err == cudaSuccess); } } while(0)
+#define ASTRA_CUDA_ASSERT(err) do { if (!checkCuda(err, __FUNCTION__)) { assert(err == cudaSuccess); } } while(0)
namespace astraCUDA {
@@ -72,7 +72,6 @@ void duplicateProjectionData(float* D_dst, float* D_src, unsigned int pitch, con
bool cudaTextForceKernelsCompletion();
-void reportCudaError(cudaError_t err);
bool checkCuda(cudaError_t err, const char *msg);