Merge pull request #876 from gargrahul/fix_p2p_sample_error_code

Fixed HIP error check in P2P sample test

[ROCm/hip commit: 6ce8e8ffc9]
This commit is contained in:
Maneesh Gupta
2019-01-29 06:01:11 +05:30
committed by GitHub
@@ -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."); \