Skip to content

Commit

Permalink
Add a check when kernel are evaluated on the CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
alazzaro committed Dec 10, 2024
1 parent 0f960f1 commit 31dc51a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mm/dbcsr_mm_accdrv.F
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,9 @@ SUBROUTINE dbcsr_mm_accdrv_process(this, left, right, params, stack_size, &
IF (success) THEN
CALL acc_event_record(stackbuf%calculated, stream=stackbuf%stream)
ELSE
IF (dbcsr_cfg%use_acc_g2g%val) THEN
DBCSR_ABORT("MPI G2G requires all kernels to be evaluated on the GPU!")
END IF
this%do_gpu_c_redux = .TRUE.
END IF

Expand Down

0 comments on commit 31dc51a

Please sign in to comment.