SWDEV-491253 - Create stream capture test for kernel APIs (#1189)
Este cometimento está contido em:
1 ascendente
1c09c87cc7
cometimento
259010f2d5
6 ficheiros modificados
+108
-9
Não existem ficheiros que correspondam à sua pesquisa
@@ -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));
|
||||
}
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador