Skip to content

Commit

Permalink
Remove memory allocation on GPU from MPI worker nodes (espressomd#3911)
Browse files Browse the repository at this point in the history
Fixes espressomd#3910

Description of changes:
- create an asynchronous stream on the GPU only for the head node
  • Loading branch information
kodiakhq[bot] authored and jngrad committed Oct 13, 2020
1 parent 39522f5 commit 402cc66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ static int reinit_particle_comm_gpu = true;
void on_program_start() {

#ifdef CUDA
cuda_init();
if (this_node == 0) {
cuda_init();
}
#endif

/*
Expand Down

0 comments on commit 402cc66

Please sign in to comment.