Merge pull request #876 from gargrahul/fix_p2p_sample_error_code

Fixed HIP error check in P2P sample test
这个提交包含在:
Maneesh Gupta 编写, GitHub 于 2019-01-29 06:01:11 +05:30 提交
2 父节点 50a12f1ce1 1b8ddbbb85
当前提交 6ce8e8ffc9
1 个文件已更改
+1 -1
+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."); \