Are there modules for the Intel fortran compiler or gfortran on Ganymede? I wasn’t able to find any. Would the admins be willing to build/support these modules, or should I just install gfortran locally as needed?
Thanks,
Patrick
Are there modules for the Intel fortran compiler or gfortran on Ganymede? I wasn’t able to find any. Would the admins be willing to build/support these modules, or should I just install gfortran locally as needed?
Thanks,
Patrick
Hello Patrick,
There is fortran compiler available in ganymede. No need to load any modules. Just compiled the following…
f95 is available and all kind of mpi fortran compilers are also.
[sxm039100@ganymede TEST]$ f95 -o out test.f
[sxm039100@ganymede TEST]$ ./out
Hello World
Input and output file names
[sxm039100@ganymede TEST]$ mpi
mpic++ mpiexec mpifc mpiicpc mpispawn
mpicc mpiexec.hydra mpifort mpiifort mpitune
mpichversion mpiexec.mpirun_rsh mpigcc mpiname mpivars
mpicleanup mpif77 mpigxx mpirun mpivars.csh
mpicxx mpif90 mpiicc mpirun_rsh mpivars.sh
Hope this helps.
-Sasmita
Hi Sasmita,
Thanks for looking into this. I hadn’t realized they were enabled by default.
Hey Patrick,
The default module stack on ganymede includes the Intel compilers and the mvapich2 mpi stack.
[csim@ganymede ~]$ ml list
Currently Loaded Modules:
1) autotools 2) prun/1.3 3) intel/18.0.2.199 4) mvapich2/2.3.1 5) ohpc
[csim@ganymede ~]$ which ifort
/opt/ohpc/pub/intel/compilers_and_libraries_2018.2.199/linux/bin/intel64/ifort
[csim@ganymede ~]$ which mpicc
/opt/ohpc/pub/mpi/mvapich2-intel/2.3.1/bin/mpicc
[csim@ganymede ~]$
If you’d like to change to the gnu compilers, there are two options, 7.3.0 and 8.3.0
[csim@ganymede ~]$ ml avail gnu
--------------------------------------------------------------------------------------------- /opt/ohpc/pub/modulefiles ---------------------------------------------------------------------------------------------
gnu7/7.3.0 gnu8/8.3.0 gnuplot/5.2
Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".
[csim@ganymede ~]$
Loading one of them updates the rest of your dependent modules.
[csim@ganymede ~]$ ml swap intel gnu8
Due to MODULEPATH changes, the following have been reloaded:
1) mvapich2/2.3.1
[csim@ganymede ~]$ ml list
Currently Loaded Modules:
1) autotools 2) prun/1.3 3) ohpc 4) gnu8/8.3.0 5) mvapich2/2.3.1
[csim@ganymede ~]$ which gfortran
/opt/ohpc/pub/compiler/gcc/8.3.0/bin/gfortran
[csim@ganymede ~]$ which mpicc
/opt/ohpc/pub/mpi/mvapich2-gnu8/2.3.1/bin/mpicc
[csim@ganymede ~]$