The combination of compiler and mpi module

GNU, Intel Compiler and OpenMPI can be used in combination.

It is available by loading the compiler module to be used before loading the OpenMPI module.

As GNU is provided by OS, it is 4.8.5.
Please check the available version with the following command.

$ module av


Below is the usage method.

1. Intel OpenMPI

$ module load intel 
$ module load cuda 
$ module load openmpi/2.1.1 
$ mpicc -V 
Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.4.196 Build 20170411 Copyright (C) 1985-2017 Intel Corporation. All rights reserved.

 

2. OpenMPI for GNU

$ module purge /*purge of already loaded module*/
$ module load cuda $ module load openmpi/2.1.1
$ mpicc -v
Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --