SWDEV-491253 - Create stream capture test for kernel APIs (#1189)
Tá an tiomantas seo le fáil i:
1 tuismitheoir
1c09c87cc7
tiomantas
259010f2d5
6 comhad athraithe
+108
-9
Níor tháinig aon chomhaid le do chuardach
@@ -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));
|
||||
}
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir