SWDEV-470698 - fix formatting, add format check workflow (#657)
This commit is contained in:
committed by
GitHub
parent
5840940caa
commit
f7338717ae
@@ -19,25 +19,23 @@ THE SOFTWARE.
|
||||
|
||||
#include "hip/hip_runtime.h"
|
||||
|
||||
#define HIP_CHECK(error) \
|
||||
{ \
|
||||
hipError_t localError = error; \
|
||||
if ((localError != hipSuccess) && \
|
||||
(localError != hipErrorPeerAccessAlreadyEnabled)) { \
|
||||
printf("error: '%s'(%d) from %s at %s:%d\n", \
|
||||
hipGetErrorString(localError), localError, #error, __FUNCTION__, \
|
||||
__LINE__); \
|
||||
return -1; \
|
||||
} \
|
||||
#define HIP_CHECK(error) \
|
||||
{ \
|
||||
hipError_t localError = error; \
|
||||
if ((localError != hipSuccess) && (localError != hipErrorPeerAccessAlreadyEnabled)) { \
|
||||
printf("error: '%s'(%d) from %s at %s:%d\n", hipGetErrorString(localError), localError, \
|
||||
#error, __FUNCTION__, __LINE__); \
|
||||
return -1; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define REQUIRE(res) \
|
||||
{ \
|
||||
if (res) { \
|
||||
return 0; \
|
||||
} else { \
|
||||
return -1; \
|
||||
} \
|
||||
#define REQUIRE(res) \
|
||||
{ \
|
||||
if (res) { \
|
||||
return 0; \
|
||||
} else { \
|
||||
return -1; \
|
||||
} \
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user