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


[ROCm/hip commit: 9edd31100d]
Этот коммит содержится в:
Aaron En Ye Shi committed 2021-04-30 21:38:45 +00:00
1 родитель 06e4e7ee8f
Коммит 34625c7a88
12 files changed
+38 -7

No files matched your search

+2 -1
Просмотреть файл
@@ -69,9 +69,10 @@ Testcase Scenarios :
*/
#include <sys/types.h>
#ifdef __linux__
#include <sys/wait.h>
#include <unistd.h>
#endif
#include <iostream>
#include <vector>
#include <limits>
+2
Просмотреть файл
@@ -31,7 +31,9 @@ THE SOFTWARE.
* HIT_END
*/
#ifdef __linux__
#include <unistd.h>
#endif
#include <atomic>
#include <vector>
#include "test_common.h"
+2
Просмотреть файл
@@ -40,8 +40,10 @@ Testcase Scenarios :
*/
#include <sys/types.h>
#ifdef __linux__
#include <sys/wait.h>
#include <unistd.h>
#endif
#include <vector>
#include "test_common.h"