Skip to content

Installation_hpc

Anthony Scemama edited this page Apr 8, 2022 · 2 revisions

Installation of HPC variants

CPU versions

GCC

./configure \
    CC=gcc \
    CFLAGS="-g -O2 -ffast-math  -march=native  -flto -fno-trapping-math -fno-math-errno -ftre
    FC=gfortran \
    FCFLAGS="-g -O2 -fstack-arrays -ffast-math -march=native  -flto -ftree-vectorize -fno-sta
    --enable-hpc --with-openmp --enable-static

Intel compilers

./configure --with-icc --with-ifort --enable-hpc --with-openmp --enable-static

CLang

./configure \
    CC=clang \
    CFLAGS="-Ofast -g -march=native" \
    FC=flang  \
    FCFLAGS="-Ofast -g -march=native" \
    --enable-hpc --with-openmp --enable-static

NVidia compilers

./configure \
    CC=nvc \
    CFLAGS="-fast -g -tp=native" \
    FC=nvfortran
    FCFLAGS="-fast -g -tp=native" \
    --enable-hpc --with-openmp 

GPU versions

OpenMP

./configure \
    CC=nvc \
    CFLAGS="-fast -g -gpu=cuda11.5,cc70 -Minfo"
    FC=nvfortran
    FCFLAGS="-fast -g -gpu=cuda11.5,cc70 -Minfo"
    --enable-hpc --with-openmp --enable-gpu=openmp

OpenACC

./configure \
    CC=nvc \
    CFLAGS="-fast -g -gpu=cuda11.5,cc70 -Minfo"
    FC=nvfortran
    FCFLAGS="-fast -g -gpu=cuda11.5,cc70 -Minfo"
    --enable-hpc --enable-gpu=openacc

Cublas

./configure \
    CC=nvc \
    CFLAGS="-fast -g -gpu=cuda11.5,cc70 -Minfo"
    FC=nvfortran
    FCFLAGS="-fast -g -gpu=cuda11.5,cc70 -Minfo"
    --enable-hpc --enable-gpu=openmp --with-cublas
Clone this wiki locally