diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux index 8a9e4ca8f8..e60cdde2a3 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux @@ -334,6 +334,7 @@ "Unit_hipDrvGetErrorString_Positive_Basic", "Unit_hipModuleLaunchKernel_Negative_Parameters", "Unit_hipModuleGetTexRef_Positive_Basic", + "Unit_hipModuleGetTexRef_Negative_Parameters", "Unit_hipModuleLaunchCooperativeKernel_Negative_Parameters", "Unit_hipExtModuleLaunchKernel_Negative_Parameters", "Unit_hipLaunchKernel_Negative_Parameters", @@ -1451,6 +1452,8 @@ "Unit_hipModuleLaunchCooperativeKernelMultiDevice_Positive_Basic", "Unit_hipModuleLaunchCooperativeKernelMultiDevice_Negative_Parameters", "Unit_hipModuleLaunchCooperativeKernelMultiDevice_Negative_MultiKernelSameDevice", + "=== SWDEV-445928: This test failed in PSDB stress test on 09/02/2024 ===", + "Unit_hipExtModuleLaunchKernel_Positive_Basic", #endif #if defined VEGA20 "=== SWDEV-419112 Below tests fail in stress test on 29/08/23 ===", @@ -1610,8 +1613,6 @@ "Unit_hipIpcOpenMemHandle_Negative_Open_In_Two_Contexts_Same_Device", "Unit_hipIpcCloseMemHandle_Positive_Reference_Counting", "Unit_hipStrmPerThrdDefault", - "=== SWDEV-445928: This test failed in PSDB stress test on 09/02/2024 ===", - "Unit_hipExtModuleLaunchKernel_Positive_Basic", "=== SWDEV-445961: These tests hang in PSDB stress test on 09/02/2024 ===", "Unit_hipGraphGetRootNodes_CapturedStream", "Unit_hipStreamAddCaptureDependencies_Positive_Functional", diff --git a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArray.cc b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArray.cc index e601ea9f26..5227df3430 100644 --- a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArray.cc +++ b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArray.cc @@ -77,6 +77,7 @@ static void RunBenchmark(size_t width, size_t height, hipMemcpyKind kind, */ TEST_CASE("Performance_hipMemcpy2DFromArray_DeviceToHost") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyDeviceToHost); } @@ -98,6 +99,7 @@ TEST_CASE("Performance_hipMemcpy2DFromArray_DeviceToHost") { */ TEST_CASE("Performance_hipMemcpy2DFromArray_DeviceToDevice_DisablePeerAccess") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyDeviceToDevice); } @@ -121,6 +123,7 @@ TEST_CASE("Performance_hipMemcpy2DFromArray_DeviceToDevice_DisablePeerAccess") { */ TEST_CASE("Performance_hipMemcpy2DFromArray_DeviceToDevice_EnablePeerAccess") { CHECK_IMAGE_SUPPORT + if (HipTest::getDeviceCount() < 2) { HipTest::HIP_SKIP_TEST("This test requires 2 GPUs. Skipping."); return; diff --git a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArrayAsync.cc b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArrayAsync.cc index cadb343e2e..cdde049aed 100644 --- a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArrayAsync.cc +++ b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DFromArrayAsync.cc @@ -83,6 +83,7 @@ static void RunBenchmark(size_t width, size_t height, hipMemcpyKind kind, */ TEST_CASE("Performance_hipMemcpy2DFromArrayAsync_DeviceToHost") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyDeviceToHost); } @@ -104,6 +105,7 @@ TEST_CASE("Performance_hipMemcpy2DFromArrayAsync_DeviceToHost") { */ TEST_CASE("Performance_hipMemcpy2DFromArrayAsync_DeviceToDevice_DisablePeerAccess") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyDeviceToDevice); } @@ -127,6 +129,7 @@ TEST_CASE("Performance_hipMemcpy2DFromArrayAsync_DeviceToDevice_DisablePeerAcces */ TEST_CASE("Performance_hipMemcpy2DFromArrayAsync_DeviceToDevice_EnablePeerAccess") { CHECK_IMAGE_SUPPORT + if (HipTest::getDeviceCount() < 2) { HipTest::HIP_SKIP_TEST("This test requires 2 GPUs. Skipping."); return; diff --git a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArray.cc b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArray.cc index d690a1b55a..5d8e52641a 100644 --- a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArray.cc +++ b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArray.cc @@ -77,6 +77,7 @@ static void RunBenchmark(size_t width, size_t height, hipMemcpyKind kind, */ TEST_CASE("Performance_hipMemcpy2DToArray_HostToDevice") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyHostToDevice); } @@ -98,6 +99,7 @@ TEST_CASE("Performance_hipMemcpy2DToArray_HostToDevice") { */ TEST_CASE("Performance_hipMemcpy2DToArray_DeviceToDevice_DisablePeerAccess") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyDeviceToDevice); } @@ -121,6 +123,7 @@ TEST_CASE("Performance_hipMemcpy2DToArray_DeviceToDevice_DisablePeerAccess") { */ TEST_CASE("Performance_hipMemcpy2DToArray_DeviceToDevice_EnablePeerAccess") { CHECK_IMAGE_SUPPORT + if (HipTest::getDeviceCount() < 2) { HipTest::HIP_SKIP_TEST("This test requires 2 GPUs. Skipping."); return; diff --git a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArrayAsync.cc b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArrayAsync.cc index 0ef1514274..d4ff8f6dab 100644 --- a/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArrayAsync.cc +++ b/projects/hip-tests/catch/performance/memcpy/hipMemcpy2DToArrayAsync.cc @@ -83,6 +83,7 @@ static void RunBenchmark(size_t width, size_t height, hipMemcpyKind kind, */ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_HostToDevice") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyHostToDevice); } @@ -104,6 +105,7 @@ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_HostToDevice") { */ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_DeviceToDevice_DisablePeerAccess") { CHECK_IMAGE_SUPPORT + const auto width = GENERATE(4_KB, 8_KB, 16_KB); RunBenchmark(width, 32, hipMemcpyDeviceToDevice); } @@ -127,6 +129,7 @@ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_DeviceToDevice_DisablePeerAccess" */ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_DeviceToDevice_EnablePeerAccess") { CHECK_IMAGE_SUPPORT + if (HipTest::getDeviceCount() < 2) { HipTest::HIP_SKIP_TEST("This test requires 2 GPUs. Skipping."); return; diff --git a/projects/hip-tests/catch/performance/memcpy/hipMemcpyAtoH.cc b/projects/hip-tests/catch/performance/memcpy/hipMemcpyAtoH.cc index 7ded8116d7..fa16e53db2 100644 --- a/projects/hip-tests/catch/performance/memcpy/hipMemcpyAtoH.cc +++ b/projects/hip-tests/catch/performance/memcpy/hipMemcpyAtoH.cc @@ -64,6 +64,7 @@ static void RunBenchmark(LinearAllocs host_allocation_type, size_t width) { */ TEST_CASE("Performance_hipMemcpyAtoH") { CHECK_IMAGE_SUPPORT + const auto allocation_size = GENERATE(512, 1024, 4096); const auto host_allocation_type = GENERATE(LinearAllocs::malloc, LinearAllocs::hipHostMalloc); RunBenchmark(host_allocation_type, allocation_size); diff --git a/projects/hip-tests/catch/performance/memcpy/hipMemcpyHtoA.cc b/projects/hip-tests/catch/performance/memcpy/hipMemcpyHtoA.cc index a260621d0d..449b637166 100644 --- a/projects/hip-tests/catch/performance/memcpy/hipMemcpyHtoA.cc +++ b/projects/hip-tests/catch/performance/memcpy/hipMemcpyHtoA.cc @@ -64,6 +64,7 @@ static void RunBenchmark(LinearAllocs host_allocation_type, size_t width) { */ TEST_CASE("Performance_hipMemcpyHtoA") { CHECK_IMAGE_SUPPORT + const auto allocation_size = GENERATE(512, 1024, 4096); const auto host_allocation_type = GENERATE(LinearAllocs::malloc, LinearAllocs::hipHostMalloc); RunBenchmark(host_allocation_type, allocation_size); diff --git a/projects/hip-tests/catch/unit/graph/hipGraphAddMemcpyNode.cc b/projects/hip-tests/catch/unit/graph/hipGraphAddMemcpyNode.cc index d15079346a..caf117f42e 100644 --- a/projects/hip-tests/catch/unit/graph/hipGraphAddMemcpyNode.cc +++ b/projects/hip-tests/catch/unit/graph/hipGraphAddMemcpyNode.cc @@ -53,6 +53,7 @@ THE SOFTWARE. */ TEST_CASE("Unit_hipGraphAddMemcpyNode_Positive_Basic") { CHECK_IMAGE_SUPPORT + constexpr bool async = false; SECTION("Device to host") { Memcpy3DDeviceToHostShell(Memcpy3DWrapper); } @@ -122,6 +123,8 @@ TEST_CASE("Unit_hipGraphAddMemcpyNode_Positive_Basic") { * - HIP_VERSION >= 5.2 */ TEST_CASE("Unit_hipGraphAddMemcpyNode_Negative_Parameters") { + CHECK_IMAGE_SUPPORT + using namespace std::placeholders; constexpr hipExtent extent{128 * sizeof(int), 128, 8}; diff --git a/projects/hip-tests/catch/unit/graph/hipGraphMemcpyNodeSetParams.cc b/projects/hip-tests/catch/unit/graph/hipGraphMemcpyNodeSetParams.cc index e43f8eba31..615b9210ad 100644 --- a/projects/hip-tests/catch/unit/graph/hipGraphMemcpyNodeSetParams.cc +++ b/projects/hip-tests/catch/unit/graph/hipGraphMemcpyNodeSetParams.cc @@ -53,6 +53,7 @@ THE SOFTWARE. */ TEST_CASE("Unit_hipGraphMemcpyNodeSetParams_Positive_Basic") { CHECK_IMAGE_SUPPORT + constexpr bool async = false; SECTION("Device to host") { @@ -130,6 +131,8 @@ TEST_CASE("Unit_hipGraphMemcpyNodeSetParams_Positive_Basic") { * - HIP_VERSION >= 5.2 */ TEST_CASE("Unit_hipGraphMemcpyNodeSetParams_Negative_Parameters") { + CHECK_IMAGE_SUPPORT + using namespace std::placeholders; constexpr hipExtent extent{128 * sizeof(int), 128, 8};