Skip to content

Commit

Permalink
Correct num_device value in initialize_GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalshimony committed Jan 22, 2025
1 parent 8f39006 commit b4a8a95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/specfem3D/initialize_simulation.F90
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ subroutine initialize_GPU()

if (NPROC == 1 .and. NUMBER_OF_SIMULTANEOUS_RUNS > 1 ) then
num_device = mygroup
else if (NPROC > 1 .and. NUMBER_OF_SIMULTANEOUS_RUNS > 1 ) then
num_device = myrank + mygroup * NPROC

Check warning on line 587 in src/specfem3D/initialize_simulation.F90

View check run for this annotation

Codecov / codecov/patch

src/specfem3D/initialize_simulation.F90#L586-L587

Added lines #L586 - L587 were not covered by tests
else
num_device = myrank
endif
Expand Down

0 comments on commit b4a8a95

Please sign in to comment.