c088ddbe7c
Change-Id: I3783caf85c694b724ed55b778220b8ef9a39f84b
17 라인
972 B
C++
17 라인
972 B
C++
#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); \
|
|
} \
|
|
}
|
|
|