SWDEV-452296 - Unit_hipExtModuleLaunchKernel_Positive_Basic removed

- No guarantees it will always succeed,
   could be a little early or late due to various reasons.

Change-Id: Id4c45555f9f5e05df8fdf0ad39da4c33ac16fcb9


[ROCm/hip-tests commit: ca5e061bf6]
This commit is contained in:
Marko Arandjelovic
2024-04-01 13:01:25 +02:00
committed by Rakesh Roy
parent c6bf27e246
commit d00346db7b
3 changed files with 1 additions and 26 deletions
@@ -1443,8 +1443,6 @@
"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 ===",
@@ -644,7 +644,6 @@
"Unit_hipDrvGetErrorString_Positive_Basic",
"Unit_hipModuleLaunchKernel_Negative_Parameters",
"Unit_hipModuleGetTexRef_Positive_Basic",
"Unit_hipExtModuleLaunchKernel_Positive_Basic",
"Unit_hipExtModuleLaunchKernel_Negative_Parameters",
"Unit_hipLaunchKernel_Negative_Parameters",
"Unit_Kernel_Launch_bounds_Negative_OutOfBounds",
@@ -44,7 +44,7 @@ THE SOFTWARE.
*/
#include <hip_test_common.hh>
#include <iostream>
#include <fstream>
#include "hip/hip_ext.h"
@@ -236,28 +236,6 @@ TEST_CASE("Unit_hipExtModuleLaunchKernel_UniformWorkGroup") {
HIP_CHECK(hipModuleUnload(Module));
}
TEST_CASE("Unit_hipExtModuleLaunchKernel_Positive_Basic") {
ModuleLaunchKernelPositiveBasic<hipExtModuleLaunchKernel>();
SECTION("Timed kernel launch with events") {
hipEvent_t start_event = nullptr, stop_event = nullptr;
HIP_CHECK(hipEventCreate(&start_event));
HIP_CHECK(hipEventCreate(&stop_event));
const auto kernel = GetKernel(mg.module(), "Delay");
int clock_rate = 0;
HIP_CHECK(hipDeviceGetAttribute(&clock_rate, hipDeviceAttributeClockRate, 0));
uint32_t interval = 100;
uint32_t ticks_per_second = clock_rate;
void* kernel_params[2] = {&interval, &ticks_per_second};
HIP_CHECK(hipExtModuleLaunchKernel(kernel, 1, 1, 1, 1, 1, 1, 0, nullptr, kernel_params, nullptr,
start_event, stop_event));
HIP_CHECK(hipDeviceSynchronize());
auto elapsed = 0.0f;
HIP_CHECK(hipEventElapsedTime(&elapsed, start_event, stop_event));
REQUIRE(static_cast<uint32_t>(elapsed) >= interval);
}
}
TEST_CASE("Unit_hipExtModuleLaunchKernel_Positive_Parameters") {
ModuleLaunchKernelPositiveParameters<hipExtModuleLaunchKernel>();