SWDEV-397358 - Fix hipDeviceSetCacheConfig & hipDeviceSetSharedMemConfig tests (#312)
[ROCm/hip-tests commit: efc742a900]
Este cometimento está contido em:
cometido por
GitHub
ascendente
2ff66ee54b
cometimento
695870d846
@@ -67,11 +67,6 @@
|
||||
"SWDEV-398980 fails in Stress test",
|
||||
"Unit_hipMemcpyPeer_Positive_Synchronization_Behavior",
|
||||
"SWDEV-398981 fails in stress test",
|
||||
"Unit_hipStreamCreateWithPriority_MulthreadDefaultflag",
|
||||
"Disabling below 4 tests temporarily due to change in API behavior",
|
||||
"Unit_hipDeviceSetCacheConfig_Positive_Basic",
|
||||
"Unit_hipDeviceSetCacheConfig_Negative_Parameters",
|
||||
"Unit_hipDeviceSetSharedMemConfig_Positive_Basic",
|
||||
"Unit_hipDeviceSetSharedMemConfig_Negative_Parameters"
|
||||
"Unit_hipStreamCreateWithPriority_MulthreadDefaultflag"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -166,11 +166,6 @@
|
||||
"SWDEV-402082 - PAL Backend fails to reserve address on GPU except first one",
|
||||
"Unit_hipGraphInstantiateWithFlags_FlagAutoFreeOnLaunch_check",
|
||||
"SWDEV-398981 fails in stress test",
|
||||
"Unit_hipStreamCreateWithPriority_MulthreadDefaultflag",
|
||||
"Disabling below 4 tests temporarily due to change in API behavior",
|
||||
"Unit_hipDeviceSetCacheConfig_Positive_Basic",
|
||||
"Unit_hipDeviceSetCacheConfig_Negative_Parameters",
|
||||
"Unit_hipDeviceSetSharedMemConfig_Positive_Basic",
|
||||
"Unit_hipDeviceSetSharedMemConfig_Negative_Parameters"
|
||||
"Unit_hipStreamCreateWithPriority_MulthreadDefaultflag"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -38,16 +38,12 @@ TEST_CASE("Unit_hipDeviceSetCacheConfig_Positive_Basic") {
|
||||
|
||||
const auto cache_config =
|
||||
GENERATE(from_range(std::begin(kCacheConfigs), std::end(kCacheConfigs)));
|
||||
#if HT_AMD
|
||||
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(cache_config), hipErrorNotSupported);
|
||||
#elif HT_NVIDIA
|
||||
HIP_CHECK(hipDeviceSetCacheConfig(cache_config));
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipDeviceSetCacheConfig_Negative_Parameters") {
|
||||
#if HT_AMD
|
||||
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipErrorNotSupported);
|
||||
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipSuccess);
|
||||
#elif HT_NVIDIA
|
||||
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipErrorInvalidValue);
|
||||
#endif
|
||||
@@ -105,4 +101,4 @@ TEST_CASE("Unit_hipDeviceGetCacheConfig_Positive_Threaded") {
|
||||
|
||||
TEST_CASE("Unit_HipDeviceGetCacheConfig_Negative_Parameters") {
|
||||
HIP_CHECK_ERROR(hipDeviceGetCacheConfig(nullptr), hipErrorInvalidValue);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,11 +35,7 @@ TEST_CASE("Unit_hipDeviceSetSharedMemConfig_Positive_Basic") {
|
||||
HIP_CHECK(hipSetDevice(device));
|
||||
INFO("Current device is " << device);
|
||||
|
||||
#if HT_AMD
|
||||
HIP_CHECK_ERROR(hipDeviceSetSharedMemConfig(mem_config), hipErrorNotSupported);
|
||||
#elif HT_NVIDIA
|
||||
HIP_CHECK(hipDeviceSetSharedMemConfig(mem_config));
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_CASE("Unit_hipDeviceSetSharedMemConfig_Negative_Parameters") {
|
||||
@@ -113,4 +109,4 @@ TEST_CASE("Unit_hipDeviceGetSharedMemConfig_Positive_Threaded") {
|
||||
|
||||
TEST_CASE("Unit_hipDeviceGetSharedMemConfig_Negative_Parameters") {
|
||||
HIP_CHECK_ERROR(hipDeviceGetSharedMemConfig(nullptr), hipErrorInvalidValue);
|
||||
}
|
||||
}
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador