The Intel Compilers for Fortran and C version 10.1 have been installed at SERC. you can use them on the machines in the first floor bay area, sunlx, fedlx and hplx, at SERC. Environmental Setup on the sunlx , hplx and fedlx machines For bash shell: source /home/pkg/lic/intel-compilers/linux/em64/cce/10.1.008/bin/iccvars.sh For csh shell: source /home/pkg/lic/intel-compilers/linux/em64/cce/10.1.008/bin/iccvars.csh Compilation To compile fortran 90/95 files using MKL use the following command: ifort -Bdynamic filename.f90 -I $LIBRARY_PATH -L $LIBRARY_PATH -lmkl_blas95 -lmkl -lguide -lpthread To compile fortran files at the prompt type ifort filename.f90 or ifort -c filename.f Then an executable a.out (default) is created, run that file : ./a.out for obtaining the output. You can also use ifort -o filename.out filename.f Then the filename.out becomes the executable file and if you run this file ./filename.out you will get the results of your program. To compile using MKL use the following command: ifort -Bdynamic filename.f90 -I $LIBRARY_PATH -L $LIBRARY_PATH -lmkl_blas95 -lmkl -lguide -lpthread Documentation For help on MKL : /home/pkg/lic/intel-compilers/linux/mkl/10.0.011/doc/Doc_index.html For help on Fortran : /home/pkg/lic/intel-compilers/linux/em64/fce/10.1.008/doc/Doc_index.html For help on C : /home/pkg/lic/intel-compilers/linux/em64/cce/10.1.008/doc/Doc_index.html
Report Problems to:
For any queries, raise a ticket in the helpdesk or please contact System Administrator, #103,SERC.
|