Using Lonestar5 in TACC

There are currently issues using Intel compilers in Lonestar5, so only GNU compilers can be used.

Follow this instructions for using Lonestar5 (using FLOSIC code as example):

  • You must change the programming environment from intel to gcc, run: modue swap intel gcc
  • Load the mkl module to use with gnu compilers, run: module load mkl
  • In the Makefile make sure you are using gcc as your C compiler, the Fortran compiler can remain mpif90 for MPI compilation or change it gfortran for serial compilation

    CC = gcc
    FC = mpif90
    FFF = mpif90
  • Remove the optimization flags in the compilation and linking flags

    CFLAGS = -O3
    FFLAGS = -fno-align-commons -fbacktrace
    LFLAGS = -fno-align-commons -fbacktrace
  • Your linking line should look like this:

    $(FFF) $(LFLAGS) $(OBJ) -o $(BIN) $(PCM_LIBS) $(EFP_LIB) $(LIBS) -fopenmp -I$(MKLROOT)/include \
    -Wl,-L${MKLROOT}/lib/intel64 \
    -lmkl_intel_lp64 -lmkl_core \
    -lmkl_gnu_thread -lpthread \
    -lm -ldl