You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GPU/Common/GPUCommonChkErr.h
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,19 @@
12
12
/// \file GPUCommonChkErr.h
13
13
/// \author David Rohr
14
14
15
+
// GPUChkErr and GPUChkErrI will both check x for an error, using the loaded backend of GPUReconstruction (requiring GPUReconstruction.h to be included by the user).
16
+
// In case of an error, it will print out the corresponding CUDA / HIP / OpenCL error code
17
+
// GPUChkErr will download GPUReconstruction error values from GPU, print them, and terminate the application with an exception if an error occured.
18
+
// GPUChkErrI will return 0 or 1, depending on whether an error has occurred.
19
+
// The Macros must be called ona GPUReconstruction instance, e.g.:
20
+
// if (mRec->GPUChkErrI(cudaMalloc(...))) { exit(1); }
0 commit comments