SWDEV-353807 - Fixes multiple catch issues (#2912)
- enforcing c++17 for all tests - Warning as error: ignoring return value Change-Id: I3d171540403f74222e631d1a8e393386461c9729
This commit is contained in:
committed by
GitHub
parent
ba5a0b9af5
commit
d0aaed906d
@@ -60,18 +60,18 @@ static void hipTestWithGraph() {
|
||||
hipGraph_t graph;
|
||||
hipGraphExec_t instance;
|
||||
|
||||
hipStreamBeginCapture(stream, hipStreamCaptureModeGlobal);
|
||||
HIP_CHECK(hipStreamBeginCapture(stream, hipStreamCaptureModeGlobal));
|
||||
for (int ikrnl = 0; ikrnl < NKERNEL; ikrnl++) {
|
||||
simpleKernel<<<dim3(N / 512, 1, 1), dim3(512, 1, 1),
|
||||
0, stream>>>(out_d, in_d);
|
||||
}
|
||||
hipStreamEndCapture(stream, &graph);
|
||||
hipGraphInstantiate(&instance, graph, nullptr, nullptr, 0);
|
||||
HIP_CHECK(hipStreamEndCapture(stream, &graph));
|
||||
HIP_CHECK(hipGraphInstantiate(&instance, graph, nullptr, nullptr, 0));
|
||||
|
||||
auto start1 = std::chrono::high_resolution_clock::now();
|
||||
for (int istep = 0; istep < NSTEP; istep++) {
|
||||
hipGraphLaunch(instance, stream);
|
||||
hipStreamSynchronize(stream);
|
||||
HIP_CHECK(hipGraphLaunch(instance, stream));
|
||||
HIP_CHECK(hipStreamSynchronize(stream));
|
||||
}
|
||||
auto stop = std::chrono::high_resolution_clock::now();
|
||||
auto withInit = std::chrono::duration<double, std::milli>(stop - start);
|
||||
|
||||
Reference in New Issue
Block a user