SWDEV-1 - Add missing checks in hipMallocManaged_MultiScenario.cc

Este cometimento está contido em:
Maneesh Gupta criou e GitHub cometeu 2022-10-11 08:54:25 +05:30
1 ascendente 79eeb9b806
cometimento 1d0cb68cd9
1 ficheiro modificado
+1 -1
+1 -1
Ver ficheiro
@@ -93,7 +93,7 @@ TEST_CASE("Unit_hipMallocManaged_HostDeviceConcurrent") {
std::thread host_thread(HostKernelDouble, Hmm, hPtr, N);
KernelDouble<<<dim3(blocks), dim3(threadsPerBlock), 0, 0>>>(Hmm, dPtr, N);
host_thread.join();
hipMemcpy(resPtr, dPtr, N * sizeof(float), hipMemcpyDeviceToHost);
HIP_CHECK(hipMemcpy(resPtr, dPtr, N * sizeof(float), hipMemcpyDeviceToHost));
for (size_t i = 0; i < N; i++) {
REQUIRE(hPtr[i] == resPtr[i]);