diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux index fee3605ea45..5413570155e 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux @@ -50,13 +50,6 @@ "Unit_Coalesced_Group_Tiled_Partition_Sync_Positive_Basic - uint8_t", "Unit_Coalesced_Group_Tiled_Partition_Sync_Positive_Basic - uint16_t", "Unit_Coalesced_Group_Tiled_Partition_Sync_Positive_Basic - uint32_t", - "=== SWDEV-444987 - Below tests fail in stress testing on 25/01/2023 ===", - "Unit_floatTM", - "Unit_TestMathFuncComplex", - "Unit_hipGraphAddMemcpyNodeToSymbol_Positive_Basic", - "Unit_hipStreamBeginCapture_Positive_Functional", - "Unit_Kernel_Launch_bounds_Negative_OutOfBounds", - "Unit_Kernel_Launch_bounds_Negative_Parameters_RTC", "SWDEV-447384, SWDEV-447932: These tests fail in gfx1100, gfx1101 & gfx1102", "SWDEV-445928: These tests fail in PSDB stress test on 09/02/2024", "Unit_hipGraphInstantiateWithFlags_StreamCaptureDeviceContextChg", diff --git a/projects/hip-tests/catch/unit/executionControl/hipLaunchCooperativeKernelMultiDevice.cc b/projects/hip-tests/catch/unit/executionControl/hipLaunchCooperativeKernelMultiDevice.cc index e369a196b93..f3ea6df74df 100644 --- a/projects/hip-tests/catch/unit/executionControl/hipLaunchCooperativeKernelMultiDevice.cc +++ b/projects/hip-tests/catch/unit/executionControl/hipLaunchCooperativeKernelMultiDevice.cc @@ -35,6 +35,10 @@ TEST_CASE("Unit_hipLaunchCooperativeKernelMultiDevice_Positive_Basic", } const auto device_count = HipTest::getDeviceCount(); + if (device_count < 2) { + SUCCEED("Test requires at least 2 devices"); + return; + } std::vector params_list(device_count); @@ -68,6 +72,10 @@ TEST_CASE("Unit_hipLaunchCooperativeKernelMultiDevice_Negative_Parameters", } const auto device_count = HipTest::getDeviceCount(); + if (device_count < 2) { + SUCCEED("Test requires at least 2 devices"); + return; + } std::vector params_list(device_count); @@ -144,6 +152,12 @@ TEST_CASE("Unit_hipLaunchCooperativeKernelMultiDevice_Negative_MultiKernelSameDe return; } + const auto device_count = HipTest::getDeviceCount(); + if (device_count < 2) { + SUCCEED("Test requires at least 2 devices"); + return; + } + HIP_CHECK(hipSetDevice(0)); std::vector params_list(2); diff --git a/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc b/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc index cc8e47bc4f6..20f582e35f4 100644 --- a/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc +++ b/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc @@ -127,11 +127,8 @@ TEST_CASE("Unit_Kernel_Launch_bounds_Negative_OutOfBounds") { * ------------------------ * - Validates handling of invalid arguments: * -# Compiles kernels that are not created appropriately: - * - Maximum number of threads is 0 - * - Maximum number of threads is negative - * - Minimum number of warps is negative * - Maximum number of threads is not integer value - * - Mimimum number of warps is not integer value + * - Minimum number of warps is not integer value * -# Expected output: compiler error * - Uses RTC for compilation. * Test source @@ -144,13 +141,7 @@ TEST_CASE("Unit_Kernel_Launch_bounds_Negative_OutOfBounds") { TEST_CASE("Unit_Kernel_Launch_bounds_Negative_Parameters_RTC") { hiprtcProgram program{}; -#if HT_AMD - const auto program_source = GENERATE(kMaxThreadsZero, kMaxThreadsNegative, kMinWarpsNegative, - kMaxThreadsNotInt, kMinWarpsNotInt); -#else - // Aligned with CUDA behavior and expected behavior on NVIDIA const auto program_source = GENERATE(kMaxThreadsNotInt, kMinWarpsNotInt); -#endif HIPRTC_CHECK(hiprtcCreateProgram(&program, program_source, "launch_bounds_negative.cc", 0, nullptr, nullptr));