[dtests] Separated C macros from CPP header file (#1429)

* Separated C macros from CPP header file

* Updated review comment


[ROCm/hip commit: cde5119c9e]
This commit is contained in:
Sarbojit2019
2019-10-01 12:38:32 +05:30
committed by Maneesh Gupta
parent ef49c4f789
commit bfa8867a64
2 changed files with 27 additions and 26 deletions
+1 -12
View File
@@ -27,21 +27,10 @@
*/
#include "hip/hip_runtime.h"
#include "../test_common.h"
#include <stdio.h>
#include "LaunchKernel.h"
#define HIPCHECK(error) \
{ \
hipError_t localError = error; \
if ((localError != hipSuccess) && (localError != hipErrorPeerAccessAlreadyEnabled)) { \
printf("%serror: '%s'(%d) from %s at %s:%d%s\n", "\x1B[31m", hipGetErrorString(localError), \
localError, #error, __FILE__, __LINE__, "\x1B[0m"); \
return false; \
} \
}
bool LaunchKernelArg()
{
dim3 blocks = {1,1,1};