SWDEV-470698 - fix formatting, add format check workflow (#657)

This commit is contained in:
Danylo Lytovchenko
2025-08-20 16:28:06 +02:00
committed by GitHub
parent 5840940caa
commit f7338717ae
1574 changed files with 162972 additions and 199346 deletions
@@ -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; \
} \
}
/*