SWDEV-283930 - Fix bugs in HIP Tests on Windows
Windows doesn't have headers unistd.h, sys/wait.h, so remove them for _WIN64. Also, Windows doesn't have rand_r so define it. Fixes builds for HIP tests: d2dMemCpyWithPinnedHostMemory, hipMemset3DFunctional, hipModuleLoadMultProcessOnMultGPU, hipModuleLoadUnloadStress, hipModuleNegative, hipStreamACb_ThrdBehaviour, hipMemcpyNegativeMThrdMSize, hipStreamACb_MStrm_Mgpu, StreamAddCallback, hipStreamACb_StrmSyncTiming, hipStreamACb_MultiCalls, hipMallocConcurrency, hipMemset3DRegressMultiThread, and hipSetGetDevice. Change-Id: Id2f98d664716026c590d879e464ba467d4c071be
Tento commit je obsažen v:
@@ -40,8 +40,10 @@
|
||||
* HIT_END
|
||||
*/
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include "test_common.h"
|
||||
|
||||
int sequence_num = 0;
|
||||
@@ -275,7 +277,7 @@ bool testValidDevices(int numDevices, bool useRocrEnv, int *deviceList,
|
||||
testResult = false;
|
||||
}
|
||||
#else
|
||||
printf("skipping testcase for non unix system \n)";
|
||||
printf("skipping testcase for non unix system \n");
|
||||
#endif
|
||||
return testResult;
|
||||
}
|
||||
@@ -365,7 +367,7 @@ bool testMaxRvdMinHvd(int numDevices, int *deviceList, int count) {
|
||||
testResult = false;
|
||||
}
|
||||
#else
|
||||
printf("skipping testcase for non unix system \n)";
|
||||
printf("skipping testcase for non unix system \n");
|
||||
#endif
|
||||
return testResult;
|
||||
}
|
||||
@@ -409,7 +411,7 @@ bool testRvdCvd(int numDevices, int *deviceList, int count) {
|
||||
testResult = false;
|
||||
}
|
||||
#else
|
||||
printf("skipping testcase for non unix system \n)";
|
||||
printf("skipping testcase for non unix system \n");
|
||||
#endif
|
||||
return testResult;
|
||||
}
|
||||
@@ -457,7 +459,7 @@ bool testMinRvdMaxHvd(int numDevices, int *deviceList, int count) {
|
||||
testResult = false;
|
||||
}
|
||||
#else
|
||||
printf("skipping testcase for non unix system \n)";
|
||||
printf("skipping testcase for non unix system \n");
|
||||
#endif
|
||||
return testResult;
|
||||
}
|
||||
@@ -540,7 +542,7 @@ bool testDeviceListSequence(int numDevices, bool useRocrEnv,
|
||||
testResult = false;
|
||||
}
|
||||
#else
|
||||
printf("skipping testcase for non unix system \n)";
|
||||
printf("skipping testcase for non unix system \n");
|
||||
#endif
|
||||
return testResult;
|
||||
}
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele