You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MPI gpu-direct: make it optional and have fallback solution with device-host explicit transfers (#389)
* gpu-direct: handle communications when MPI GPU DIRECT is not there/available.
---------
Co-authored-by: Geoffroy Lesur <geoffroy.lesur@univ-grenoble-alpes.fr>
Copy file name to clipboardExpand all lines: doc/source/faq.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ I have a complex setup, and have written some functions in separate .cpp files.
27
27
I want to run on the GPUs of xxx machine, how do I proceed?
28
28
Check the examples in :ref:`setupExamples`
29
29
30
+
I don't have a CUDA or HIP aware MPI with GPU DIRECT support, how I can run *Idefix* ?
31
+
You can look at the compile option `-DIdefix_MPI_GPU_DIRECT=OFF` in :ref:`makefile` to disable GPU DIRECT usage. Note that this will decrease performances.
Copy file name to clipboardExpand all lines: doc/source/reference/makefile.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
.. _makefile:
2
+
1
3
Code configuration with Cmake
2
4
=============================
3
5
@@ -33,6 +35,10 @@ Several options can be enabled from the command line (or are accessible with ``c
33
35
``-D Idefix_MPI=ON``
34
36
Enable MPI parallelisation. Requires an MPI library. When used in conjonction with CUDA (Nvidia GPUs), a CUDA-aware MPI library is required by *Idefix*.
35
37
38
+
``-D Idefix_MPI_GPU_DIRECT=OFF``
39
+
Disable the usage of MPI GPU direct for inter-process communication. In this case it uses a copy between GPU and GPU before and after making communications.
40
+
It is usefull if your MPI is not GPU-aware. Note that this option decreases performances.
41
+
36
42
``-D Idefix_DEFS=foo.hpp``
37
43
Specify a particular filename to be used in place of the default problem file ``definitions.hpp``
0 commit comments