Merge pull request #876 from gargrahul/fix_p2p_sample_error_code

Fixed HIP error check in P2P sample test

[ROCm/clr commit: 5012e0fed6]
Этот коммит содержится в:
Maneesh Gupta
2019-01-29 06:01:11 +05:30
коммит произвёл GitHub
родитель 53c5bc3a86 84c31c3623
Коммит 362c0175c4
+1 -1
Просмотреть файл
@@ -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."); \