make
F77FLAGS
and
CCFLAGS
to enable optimization.
The following assignments are made by default for all users.
# For Fortran 77 setenv F77 'pgf77' setenv F77FLAGS '-g' setenv F77CFLAGS '-c' setenv F77LFLAGS '-L/usr/local/PGI/lib' setenv LIBBLAS '-lblas' # For Fortran 90 setenv F90 'pgf90' setenv F90FLAGS '-g' setenv F90CFLAGS '-c' setenv F90LFLAGS '-L/usr/local/PGI/lib' # For C setenv CC 'pgcc' setenv CCFLAGS '-g' setenv CCCFLAGS '-I/usr/local/PGI/include -I/usr/X11R6/include -c' setenv CCLFLAGS '-L/usr/local/PGI/lib -L/usr/X11R6/lib' # For C++ setenv CXX 'pgCC' setenv CXXFLAGS '-g' setenv CXXCFLAGS '-I/usr/local/PGI/include -I/usr/X11R6/include -c' setenv CXXLFLAGS '-L/usr/local/PGI/lib -L/usr/X11R6/lib' # Libraries for GL/GLUT/Inventor Development setenv LIBGL '-lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm' setenv LIBINVENTOR '-lInventorXt -lInventor -lGL -lXm -lX11 -lm' # Libraries for Xforms/GL Development setenv LIBXFORMS '-lforms -lGL -lXext -lX11 -lm' # Libraries for xvs -> .sdf interface setenv LIBXVS '-lsvs -lbbhutil -lsv'Use the following assignments to enable optimization:
setenv F77FLAGS '-fast' setenv CCFLAGS '-fast' setenv CXXFLAGS '-fast'
# For Fortran 77 setenv F77 'f77' setenv F77FLAGS '-g -fno-second-underscore' setenv F77CFLAGS '-c' setenv F77LFLAGS '-L/usr/local/lib -fno-second-underscore' setenv LIBBLAS '-lblas' # For C setenv CC 'gcc' setenv CCFLAGS '-g' setenv CCCFLAGS '-I/usr/local/include -I/usr/X11R6/include -c' setenv CCLFLAGS '-L/usr/local/lib -L/usr/X11R6/lib' # For C++ setenv CXX 'g++' setenv CXXFLAGS '-g' setenv CXXCFLAGS '-I/usr/local/include -I/usr/X11R6/include -c' setenv CXXLFLAGS '-L/usr/local/lib -L/usr/X11R6/lib' # Libraries for GL/GLUT/Inventor Development setenv LIBGL '-lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm' setenv LIBINVENTOR '-lInventorXt -lInventor -lGL -lXm -lX11 -lm' # Libraries for Xforms/GL Development setenv LIBXFORMS '-lforms -lGL -lXext -lX11 -lm' # Libraries for xvs -> .sdf interface setenv LIBXVS '-lsvs -lbbhutil -lsv'Use the following assignments to enable optimization:
setenv F77FLAGS '-O6' setenv CCFLAGS '-O6' setenv CXXFLAGS '-O6'
setenv F77 'pgf77' setenv F77FLAGS '-g' #setenv F77FLAGS '-fast' setenv F77CFLAGS '-c' setenv F77LFLAGS '-L/usr/local/PGI/lib' setenv LIBBLAS '-lblas' setenv CC 'pgcc' setenv CCFLAGS '-g' #setenv CCFLAGS '-fast' setenv CCCFLAGS '-I/usr/local/include -I/usr/X11R6/include -c' setenv CCLFLAGS '-L/usr/local/PGI/lib -L/usr/X11R6/lib'
setenv F77 'f77' setenv F77FLAGS '-g' #setenv F77FLAGS '-O' setenv F77CFLAGS '-c' setenv F77LFLAGS '-L/usr/local/lib -L/home3/choptuik/lib' setenv LIBBLAS '-lblas' setenv F90 'f90' setenv F90FLAGS '-g' #setenv F90FLAGS '-O' setenv F90CFLAGS '-c' setenv F90LFLAGS '-L/usr/local/lib -L/home3/choptuik/lib' setenv CC 'cc' setenv CCFLAGS '-g' setenv CCCFLAGS '-c' setenv CCLFLAGS '-L/usr/local/lib -L/home3/choptuik/lib'NOTE: If you wish to link f77 code with the Sun f90 compiler, use -lf77compat