Skip to content

Commit 33da95c

Browse files
author
Roman Gruber
committed
we have to give QUDA the current MPI commnicator
1 parent a4250d9 commit 33da95c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/quda_interface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ void _initQuda() {
448448
// initialize the QUDA library
449449
#ifdef TM_USE_MPI
450450
initQuda(-1); // sets device numbers automatically
451+
setMPICommHandleQuda(app()->mpi.comm); // pass the proper MPI communicator to QUDA
451452
#else
452453
initQuda(0); // scalar build: use device 0
453454
#endif

0 commit comments

Comments
 (0)