Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,4 @@ TEST_CASE("Unit_deviceAllocation_NewDelete_MultProcess") {
REQUIRE(res == true);
}

#endif
#endif //__linux__
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@ TEST_CASE("Unit_hipDeviceGetPCIBusId_CheckPciBusIDWithLspci") {

REQUIRE(deviceMatchCount == deviceCount);
}
#endif
#endif //__linux__
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ TEST_CASE("Unit_hipDeviceTotalMem_MaskedDevices") {
* @}
*/

#endif
#endif //__linux__
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ TEST_CASE("Unit_hipDeviceGetAttribute_MaskedDevices") {
SUCCEED("Not enough GPUs to run the masked GPU tests");
}
}
#endif
#endif //__linux__
11 changes: 10 additions & 1 deletion projects/hip-tests/catch/multiproc/hipGetDeviceCountMproc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,20 @@ THE SOFTWARE.
#ifdef __linux__
#include <unistd.h>
#include <sys/wait.h>
#endif // __linux__

#define MAX_SIZE 30
#define VISIBLE_DEVICE 0

#ifdef _WIN32
static int setenv(const char* name, const char* value, int overwrite) {
REQUIRE(overwrite == 1);
return _putenv_s(name, value);
}

static int unsetenv(const char* name) { return _putenv_s(name, ""); }
#endif // _WIN32

/**
* Validate behavior of hipGetDeviceCount for masked devices.
*/
Expand All @@ -51,4 +61,3 @@ TEST_CASE("Unit_hipGetDeviceCount_MaskedDevices") {
HIP_CHECK(hipGetDeviceCount(&numDevices));
REQUIRE(numDevices == 1);
}
#endif
2 changes: 1 addition & 1 deletion projects/hip-tests/catch/multiproc/hipIpcEventHandle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,4 @@ TEST_CASE("Unit_hipIpcEventHandle_ParameterValidation") {
* @}
*/

#endif
#endif // __linux__
3 changes: 2 additions & 1 deletion projects/hip-tests/catch/multiproc/hipIpcMemAccessTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ TEST_CASE("Unit_hipIpcMemAccess_Semaphores") {
A_h, nullptr, C_h, false);
}

#endif // __linux__

/**
* Test Description
* ------------------------
Expand Down Expand Up @@ -278,4 +280,3 @@ TEST_CASE("Unit_hipIpcMemAccess_ParameterValidation") {
* @}
*/

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -516,4 +516,4 @@ TEST_CASE("Unit_hipHostMalloc_WthEnv1Flg3") {
}
}
#endif
#endif
#endif // __linux__
2 changes: 1 addition & 1 deletion projects/hip-tests/catch/multiproc/hipMemGetInfoMProc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,4 @@ TEST_CASE("Unit_hipMemGetInfo_VerifyHiddenFreeMemForAllGpu") {
}
}
#endif
#endif
#endif // __linux__