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

This commit is contained in:
vstojilj
2025-11-27 17:40:11 +01:00
committed by GitHub
parent 1c09c87cc7
commit 259010f2d5
6 changed files with 108 additions and 9 deletions
@@ -155,4 +155,18 @@ TEST_CASE("Unit_hipLaunchKernel_Negative_Parameters") {
hipErrorInvalidValue);
}
#endif
}
TEST_CASE("Unit_hipLaunchKernel_Verify_Capture") {
hipStream_t stream;
HIP_CHECK(hipStreamCreate(&stream));
GENERATE_CAPTURE();
BEGIN_CAPTURE(stream);
HIP_CHECK(hipLaunchKernel(reinterpret_cast<void*>(kernel), dim3{1, 1, 1}, dim3{1, 1, 1}, nullptr,
0, stream));
END_CAPTURE(stream);
HIP_CHECK(hipDeviceSynchronize());
HIP_CHECK(hipStreamDestroy(stream));
}