Difference between revisions of "Working with OpenMPI on the Research Servers"

From UW-Math Wiki
Jump to navigation Jump to search
(Created page with " There are have two different development kits on the [https://kb.wisc.edu/math/internal/page.php?id=114567 research servers] for writing MPI code: [https://www.open-mpi.org/...")
 
 
Line 1: Line 1:
  
  
There are have two different development kits on the [https://kb.wisc.edu/math/internal/page.php?id=114567 research servers] for writing MPI code: [https://www.open-mpi.org/ OpenMPI] and [https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit.html#gs.1y5c3r Intel OneAPI HPC Toolkit].  
+
There are have two different development kits on the [https://kb.wisc.edu/math/internal/page.php?id=114567 research servers] for writing MPI code: [https://www.open-mpi.org/ OpenMPI] and [https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit.html#gs.1y5c3r Intel OneAPI HPC Toolkit]. These two sets of libraries and tools are not compatible.  
  
By default your account is configured to use the Intel MPI compilers which are incompatible with the OpenMPI libraries. If you log in to the research servers and write and compile OpenMPI-based code you will be using the OpenMPI libraries you specified in the code but compiling with the Intel tools. This will fail.
+
By default your shell environment will work with the OpenMPI libraries. To setup your shell environment to work with the Intel OneAPI tools you will need to run this command:
  
You have two choices in this case.  
+
<code>source /opt/intel/oneapi/setvars.sh</code> 
  
The first option is best if you work only with OpenMPI:
+
If you need to switch back to using the OpenMPI libraries is is '''best''' to log out and back in again. But you can also run this command:  
  
# Create a file in your home directory that tells the login scripts that you do '''not''' wish to have the Intel OneAPI package initialized for you: '''touch ~/.no-oneapi'''
+
<code>source /usr/local/bin/openmpi_setup.sh</code> 
# Then log out and back in.
 
# After this you will be using OpenMPI by default.
 
 
 
The second option is best if you will be using both development kits from time to time:
 
 
 
# Each time you log in and wish to work with OpenMPI, run this command: '''openmpi_setup'''
 
# To work with the Intel tools you'll need to log out and back in.
 
  
 
Please contact IT if you have any questions or concerns about this.
 
Please contact IT if you have any questions or concerns about this.

Latest revision as of 08:54, 6 September 2022


There are have two different development kits on the research servers for writing MPI code: OpenMPI and Intel OneAPI HPC Toolkit. These two sets of libraries and tools are not compatible.

By default your shell environment will work with the OpenMPI libraries. To setup your shell environment to work with the Intel OneAPI tools you will need to run this command:

source /opt/intel/oneapi/setvars.sh

If you need to switch back to using the OpenMPI libraries is is best to log out and back in again. But you can also run this command:

source /usr/local/bin/openmpi_setup.sh

Please contact IT if you have any questions or concerns about this.