Merge pull request #876 from gargrahul/fix_p2p_sample_error_code

Fixed HIP error check in P2P sample test
Cette révision appartient à :
Maneesh Gupta
2019-01-29 06:01:11 +05:30
révisé par GitHub
révision 6ce8e8ffc9
+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."); \