[dtests] Separated C macros from CPP header file (#1429)
* Separated C macros from CPP header file
* Updated review comment
[ROCm/hip commit: cde5119c9e]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
ef49c4f789
tiomantas
bfa8867a64
2 comhad athraithe
+27
-26
Níor tháinig aon chomhaid le do chuardach
@@ -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};
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir