VASP with GCC/gfortran on Linux AlphaServer

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.

Moderators: Global Moderator, Moderator

Post Reply
Message
Author
lahaye
Jr. Member
Jr. Member
Posts: 98
Joined: Fri Apr 14, 2006 5:08 am
Location: Suwon - Korea

VASP with GCC/gfortran on Linux AlphaServer

#1 Post by lahaye » Thu Oct 26, 2006 1:10 am

A few messages back I was struggling with the compilation of VASP
on a Linux AlphaServer system. Finally I succeeded. To prevent others
from reinventing the whieel, just for the record, this is what I needed:

Use an up-to-date version of GCC (4.1.1 or newer).
In the Makefiles, use:

Code: Select all

FC=gfortran
CPP_ =  [...] | cpp -P -C -traditional-cpp >$*.f
FFLAGS = -O -mfp-trap-mode=su -ffree-form
Alternatively, you can use "-mieee" instead of "-mfp-trap-mode=su".

The "-m" flag prevents a runtime underflow SIGSEGV.
Hence, all supporting libraries (BLAS, LAPACK etc.) should be
compiled with the same "-m" flag (either the fp-trap-mode or
ieee), otherwise the executable will SIGSEGV when calling a
library routine.

Rob.
Last edited by lahaye on Thu Oct 26, 2006 1:10 am, edited 1 time in total.

Post Reply