Fixed HIP error check in P2P sample test

[ROCm/hip-tests commit: 39735ffedd]
Cette révision appartient à :
Rahul Garg a révisé 2019-01-23 01:10:07 +05:30
1 Parent 31c9f5d9ef
révision 69de406acc
1 fichier modifié
+1 -1
+1 -1
Voir le fichier
@@ -43,7 +43,7 @@ using namespace std;
#define HIPCHECK(error) \
{ \
hipError_t localError = error; \
if (localError != hipSuccess) { \
if ((localError != hipSuccess)||(localError != hipErrorPeerAccessAlreadyEnabled)) { \
printf("%serror: '%s'(%d) from %s at %s:%d%s\n", KRED, hipGetErrorString(localError), \
localError, #error, __FILE__, __LINE__, KNRM); \
failed("API returned error code."); \