Skip to content

Commit

Permalink
Remove synchronisation after thrust call.
Browse files Browse the repository at this point in the history
  • Loading branch information
alserene committed Dec 25, 2024
1 parent 679c897 commit 2eb2bf3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/py21cmfast/src/IonisationBox.cu
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ void calculate_fcoll_grid_gpu(
// Reduce final buffer sums to one value
double f_coll_grid_total = thrust::reduce(d_Fcoll_ptr, d_Fcoll_ptr + hii_tot_num_pixels, 0., thrust::plus<float>());
*f_coll_grid_mean = f_coll_grid_total / (double) hii_tot_num_pixels;
CALL_CUDA(cudaDeviceSynchronize());
LOG_INFO("Fcoll sum reduced to single value by thrust::reduce operation.");

// Copy results from device to host
Expand Down

0 comments on commit 2eb2bf3

Please sign in to comment.