SWDEV-277697 - [CatchTest] Fix Documentation, Add test to AMD specific, Add HIP Macros, New Binary for multiproc tests

Change-Id: I3783caf85c694b724ed55b778220b8ef9a39f84b
This commit is contained in:
Jatin Chaudhary
2021-05-21 02:31:28 -07:00
committed by Jatin Chaudhary
parent f088812b6f
commit da360c2aab
17 changed files with 603 additions and 130 deletions
+14
View File
@@ -1,2 +1,16 @@
#pragma once
#include "hip_test_context.hh"
#include <catch.hpp>
#define HIP_PRINT_STATUS(status) INFO(hipGetErrorName(status) << " at line: " << __LINE__);
#define HIPCHECK(error) \
{ \
hipError_t localError = error; \
if ((localError != hipSuccess) && (localError != hipErrorPeerAccessAlreadyEnabled)) { \
INFO("Error: " << hipGetErrorString(localError) << " Code: " << localError << " Str: " \
<< #error << " In File: " << __FILE__ << " At line: " << __LINE__); \
REQUIRE(false); \
} \
}