Skip to content

Commit 4611fbb

Browse files
authored
Merge pull request #13 from qiskit-community/omp-note
Add note about openmp threading
2 parents 104700c + af29b35 commit 4611fbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ You can obtain these credentials from your IBM Quantum account.
148148

149149
### MPI Execution
150150

151+
This code supports threading at the level of `MPI_THREAD_FUNNELED`,
152+
which means that only a single thread per MPI rank can make MPI calls.
153+
One reasonable configuration is to set the number of MPI ranks equal
154+
to the number of compute nodes, and to set `OMP_NUM_THREADS` equal to
155+
the number of CPU cores per node.
156+
151157
```sh
152158
mpirun -np 96 ./c-api-demo \
153159
--fcidump ../data/fcidump_Fe4S4_MO.txt \

0 commit comments

Comments
 (0)