cc_staff
311
edits
m (Updated title) |
(Marked this version for translation) |
||
Line 5: | Line 5: | ||
__FORCETOC__ | __FORCETOC__ | ||
= Available versions = | = Available versions = <!--T:2--> | ||
<code>mpi4py</code> is available as a module, and not from the [https://docs.alliancecan.ca/wiki/Available_Python_wheels wheelhouse] as typical Python packages do. | <code>mpi4py</code> is available as a module, and not from the [https://docs.alliancecan.ca/wiki/Available_Python_wheels wheelhouse] as typical Python packages do. | ||
One can find available version using: | One can find available version using: | ||
Line 15: | Line 15: | ||
where <code>X.Y.Z</code> is the exact desired version, for instance <code>4.0.0</code>. | where <code>X.Y.Z</code> is the exact desired version, for instance <code>4.0.0</code>. | ||
= Famous first words: Hello World = | = Famous first words: Hello World = <!--T:4--> | ||
1. Run a short [https://docs.alliancecan.ca/wiki/Running_jobs#Interactive_jobs interactive job] : | 1. Run a short [https://docs.alliancecan.ca/wiki/Running_jobs#Interactive_jobs interactive job] : | ||
{{Command|salloc --account{{=}}<your account> --ntasks{{=}}5}} | {{Command|salloc --account{{=}}<your account> --ntasks{{=}}5}} | ||
Line 253: | Line 253: | ||
{{Command|sbatch submit-mpi4py-gpu.sh}} | {{Command|sbatch submit-mpi4py-gpu.sh}} | ||
= Troubleshooting = | = Troubleshooting = <!--T:50--> | ||
== ModuleNotFoundError: No module named 'mpi4py' == | == ModuleNotFoundError: No module named 'mpi4py' == | ||
If <code>mpi4py</code> is not accessible, one may get the following error when importing it: | If <code>mpi4py</code> is not accessible, one may get the following error when importing it: |