Skip to content

Commit

Permalink
SWDEV-341912 - vectoradd example to accept "-03 ndebug" options (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
agunashe authored Jul 13, 2022
1 parent a75ae53 commit f90e791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vectorAdd/vectoradd_hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ THE SOFTWARE.
#include "hip/hip_runtime.h"


#ifdef NDEBUG
#define HIP_ASSERT(x) x
#else
#define HIP_ASSERT(x) (assert((x)==hipSuccess))
#endif


#define WIDTH 1024
Expand Down

0 comments on commit f90e791

Please sign in to comment.