SWDEV-491253 - Create stream capture test for kernel APIs (#1189)

This commit is contained in:
vstojilj
2025-11-27 17:40:11 +01:00
کامیت شده توسط GitHub
والد 1c09c87cc7
کامیت 259010f2d5
6فایلهای تغییر یافته به همراه108 افزوده شده و 9 حذف شده
@@ -318,3 +318,21 @@ TEST_CASE("Unit_hipModuleLaunchKernel_Fntl") {
REQUIRE(testStatus == true);
}
}
TEST_CASE("Unit_hipModuleLaunchKernel_Verify_Capture") {
hipStream_t stream;
HIP_CHECK(hipStreamCreate(&stream));
auto mg = ModuleGuard::InitModule("launch_kernel_module.code");
GENERATE_CAPTURE();
BEGIN_CAPTURE(stream);
hipFunction_t f = GetKernel(mg.module(), "NOPKernel");
HIP_CHECK(hipModuleLaunchKernel(f, 1, 1, 1, 1, 1, 1, 0, stream, nullptr, nullptr));
END_CAPTURE(stream);
HIP_CHECK(hipDeviceSynchronize());
HIP_CHECK(hipStreamDestroy(stream));
}