Fix error codes in P2P sample test

Cette révision appartient à :
Rahul Garg
2019-02-05 06:30:57 +05:30
Parent 9a5dc9fe24
révision e8cf9cba6b
+2 -1
Voir le fichier
@@ -43,7 +43,8 @@ using namespace std;
#define HIPCHECK(error) \
{ \
hipError_t localError = error; \
if ((localError != hipSuccess)||(localError != hipErrorPeerAccessAlreadyEnabled)) { \
if ((localError != hipSuccess)&& (localError != hipErrorPeerAccessAlreadyEnabled)&& \
(localError != hipErrorPeerAccessNotEnabled )) { \
printf("%serror: '%s'(%d) from %s at %s:%d%s\n", KRED, hipGetErrorString(localError), \
localError, #error, __FILE__, __LINE__, KNRM); \
failed("API returned error code."); \