Compilers and MKL


Table of Contents


MKL

Test...Here goes tmole description...

gfortran

Example from gfortran version gcc-5.4.0

  • Download gcc tar.gz file https://ftp.gnu.org/gnu/gcc/
  • Configure and install according (the "make" step can take several hours)
    tar xzf gcc-5.4.0.tar.gz
    cd gcc-4.6.2
    ./contrib/download_prerequisites
    cd ..
    mkdir objdir
    cd objdir
    $PWD/../gcc-5.4.0/configure --prefix=$HOME/gcc-5.4.0 --enable-languages=c,c++,fortran,go
    make
    make install
    
  • Remember to configure the LD_LIBRARY_PATH for instance as (either in basrc or prefereble in a file "gcc-5.4.0.sh")
    export GFORTRAN=/home/erik/gcc-5.4.0/bin
    PATH=$HOME/bin:$GFORTRAN:$PATH
    if [ -z "$LD_LIBRARY_PATH" ]; then
     LD_LIBRARY_PATH="/home/erik/gcc-5.4.0/lib/../lib64"
    else
     LD_LIBRARY_PATH="/home/erik/gcc-5.4.0/lib/../lib64:$LD_LIBRARY_PATH"
    fi
    export LD_LIBRARY_PATH
    export PATH
    
  • gfortran can then be activated by source gcc-5.4.0.sh

gcc and g++ updrade on CentOS

Profiling

make regular run...