@@ -334,7 +334,7 @@ void copyMonteCarloHost_part(MonteCarlo_d* mc_d, MonteCarlo* mc)
334
334
safeCall (cudaMemcpy (mc->time_info , tmp, sizeof (MC_Time_Info), cudaMemcpyDeviceToHost));
335
335
safeCall (cudaDeviceSynchronize ());
336
336
// sycl::free(tmp,sycl_device_queue);
337
- cudaFree (tmp);
337
+ safeCall ( cudaFree (tmp) );
338
338
339
339
ParticleVaultContainer_d* tmp_p;
340
340
// sycl_device_queue.memcpy(&tmp_p, &(mc_d->_particleVaultContainer_d), sizeof(ParticleVaultContainer_d*)).wait();
@@ -362,15 +362,15 @@ void copyMonteCarloHost_part(MonteCarlo_d* mc_d, MonteCarlo* mc)
362
362
ParticleVault_d *tmp_0;
363
363
// sycl_device_queue.memcpy(&tmp_0, &(tmp_ev[i]), sizeof(ParticleVault_d *)).wait();
364
364
safeCall (cudaMemcpy (&tmp_0, &(tmp_ev[i]), sizeof (ParticleVault_d *), cudaMemcpyDeviceToHost));
365
- safeCall (cudaDeviceSynchronize ());
365
+ safeCall (cudaDeviceSynchronize ());
366
366
copyParticleVault_d2h (mc->_particleVaultContainer ->_extraVault [i], tmp_0);
367
367
// sycl::free(tmp_0, sycl_device_queue);
368
- cudaFree (tmp_0);
368
+ safeCall ( cudaFree (tmp_0) );
369
369
}
370
370
// sycl::free(tmp_ev, sycl_device_queue);
371
- cudaFree (tmp_ev);
371
+ safeCall ( cudaFree (tmp_ev) );
372
372
// sycl::free(tmp_p, sycl_device_queue);
373
- cudaFree (tmp_p);
373
+ safeCall ( cudaFree (tmp_p) );
374
374
}
375
375
376
376
void copyMonteCarloHost_last (MonteCarlo_d* mc_d, MonteCarlo* mc)
0 commit comments