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
@@ -34,7 +34,7 @@ THE SOFTWARE.
/**
* Fetches Gpu device count
*/
static void getDeviceCount(int *pdevCnt) {
static void getDeviceCount(int* pdevCnt) {
int fd[2], val = 0;
pid_t childpid;
@@ -107,15 +107,14 @@ bool runMaskedDeviceTest(int actualNumGPUs) {
setenv("HIP_VISIBLE_DEVICES", visibleDeviceString, 1);
#endif
for (int count = 1;
count < actualNumGPUs; count++) {
for (int count = 1; count < actualNumGPUs; count++) {
int major, minor;
err = hipDeviceComputeCapability(&major, &minor, count);
if (err == hipSuccess) {
testResult = false;
} else {
printf("hipDeviceComputeCapability: Error Code Returned: '%s'(%d)\n",
hipGetErrorString(err), err);
hipGetErrorString(err), err);
}
}
close(fd[0]);