SWDEV-465209 - Enable Not_Supported tests

This addresses
SWDEV-465209
SWDEV-465211
SWDEV-465216
SWDEV-465218
SWDEV-465210

Change-Id: I3596f058050d056608dbbe5353306ee88d277b44
This commit is contained in:
Branislav Brzak
2024-06-04 03:13:51 -07:00
committed by Branislav Brzak
parent 87c8a0417c
commit 570c690f42
9 changed files with 27 additions and 33 deletions
+7 -3
View File
@@ -1,8 +1,5 @@
set(TEST_SRC
execution_control_common.cc
hipFuncSetCacheConfig.cc
hipFuncSetSharedMemConfig.cc
hipFuncSetAttribute.cc
hipFuncGetAttributes.cc
hipLaunchKernel.cc
hipLaunchCooperativeKernel.cc
@@ -15,6 +12,13 @@ if(HIP_PLATFORM MATCHES "amd")
hipExtLaunchMultiKernelMultiDevice.cc
launch_api.cc
)
else()
# These functions are currently unimplemented on AMD
set(TEST_SRC ${TEST_SRC}
hipFuncSetCacheConfig.cc
hipFuncSetSharedMemConfig.cc
hipFuncSetAttribute.cc
)
endif()
hip_add_exe_to_target(NAME ExecutionControlTest
@@ -219,6 +219,11 @@ TEST_CASE("Unit_hipFuncSetAttribute_Negative_Parameters") {
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported") {
#if HT_NVIDIA
HipTest::HIP_SKIP_TEST("This is an AMD specific test");
return;
#endif
hipFuncAttributes old_attributes;
HIP_CHECK(hipFuncGetAttributes(&old_attributes, reinterpret_cast<void*>(kernel)));
@@ -246,6 +251,11 @@ TEST_CASE("Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supp
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported") {
#if HT_NVIDIA
HipTest::HIP_SKIP_TEST("This is an AMD specific test");
return;
#endif
hipFuncAttributes old_attributes;
HIP_CHECK(hipFuncGetAttributes(&old_attributes, reinterpret_cast<void*>(kernel)));
@@ -100,6 +100,11 @@ TEST_CASE("Unit_hipFuncSetCacheConfig_Negative_Parameters") {
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipFuncSetCacheConfig_Negative_Not_Supported") {
#if HT_NVIDIA
HipTest::HIP_SKIP_TEST("This is an AMD specific test");
return;
#endif
HIP_CHECK_ERROR(hipFuncSetCacheConfig(reinterpret_cast<void*>(kernel), hipFuncCachePreferNone),
hipErrorNotSupported);
}
@@ -100,6 +100,11 @@ TEST_CASE("Unit_hipFuncSetSharedMemConfig_Negative_Parameters") {
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported") {
#if HT_NVIDIA
HipTest::HIP_SKIP_TEST("This is an AMD specific test");
return;
#endif
HIP_CHECK_ERROR(
hipFuncSetSharedMemConfig(reinterpret_cast<void*>(kernel), hipSharedMemBankSizeDefault),
hipErrorNotSupported);