Compiling ABINIT on an IBM Power 750 Express
Posted: Wed Jun 30, 2010 3:29 pm
Hi,
I'm trying to compile ABINIT 6.0.4 in parallel on an IBM Power 750 express (AIX 6.1, Power7,xlf 13).
I've started with a serial build and have adapted the file:
abinit-6.0.4/doc/config/build-examples/bb_power6-xlf_ibm6_serial.ac
and have just added options to compile for Power7 (e.g. with_fc_optflags="-qarch=pwr7 -qtune=pwr7 -q64 -O3 -qhot -lxlopt -qstrict -qcache=auto -bmaxdata:2000000000 -qmaxmem=-1 -qsuppress=1500-036")
The compilation currently fails with:
/usr/bin/xlf90_r -q64 -DHAVE_CONFIG_H -I. -I../../../src/01_macroavnew_ext -I../.. -I../../src/incs -I../../../src/incs -WF,-DHAV
E_CONFIG_H -qsuffix=cpp=F90:f=f90 -qfree=f90 -qmoddir=/home/jmht/abinit-6.0.4/build/src/mods -I/home/jmht/abinit-6.0.4/build/src/mods -qa
rch=pwr7 -qtune=pwr7 -q64 -O3 -qhot -lxlopt -qstrict -qcache=auto -bmaxdata:2000000000 -qmaxmem=-1 -qsuppress=1500-036 -WF,-DHAVE_CONFIG_H
-q64 -g -qzerosize -c -o io.o ../../../src/01_macroavnew_ext/io.F90
"../../config.h", line 1.1: 1515-019 (S) Syntax is incorrect.
"../../config.h", line 2.1: 1515-019 (S) Syntax is incorrect.
This is because config.h is a file with C-style /* */ comments which won't work with free-format fortran code (which I think the -qfree=f90 option is setting - this isn't an option I've set myself).
I tried removing -qfree from the above compilation line and replacing it with -qfixed, but then got a bunch of errors along the lines of:
"../../config.h", line 1.0: 1515-005 (S) Continuation line is not permitted at beginning of program or after INCLUDE, EJECT, @PROCESS statements or comment directive. Line is ignored.
"../../config.h", line 2.0: 1515-005 (S) Continuation line is not permitted at beginning of program or after INCLUDE, EJECT, @PROCESS statements or comment directive. Line is ignored.
"../../config.h", line 4.0: 1515-005 (S) Continuation line is not permitted at beginning of program or after INCLUDE, EJECT, @PROCESS statements or comment directive. Line is ignored.
Can anyone suggest a way around this?
Thanks,
Jens
I'm trying to compile ABINIT 6.0.4 in parallel on an IBM Power 750 express (AIX 6.1, Power7,xlf 13).
I've started with a serial build and have adapted the file:
abinit-6.0.4/doc/config/build-examples/bb_power6-xlf_ibm6_serial.ac
and have just added options to compile for Power7 (e.g. with_fc_optflags="-qarch=pwr7 -qtune=pwr7 -q64 -O3 -qhot -lxlopt -qstrict -qcache=auto -bmaxdata:2000000000 -qmaxmem=-1 -qsuppress=1500-036")
The compilation currently fails with:
/usr/bin/xlf90_r -q64 -DHAVE_CONFIG_H -I. -I../../../src/01_macroavnew_ext -I../.. -I../../src/incs -I../../../src/incs -WF,-DHAV
E_CONFIG_H -qsuffix=cpp=F90:f=f90 -qfree=f90 -qmoddir=/home/jmht/abinit-6.0.4/build/src/mods -I/home/jmht/abinit-6.0.4/build/src/mods -qa
rch=pwr7 -qtune=pwr7 -q64 -O3 -qhot -lxlopt -qstrict -qcache=auto -bmaxdata:2000000000 -qmaxmem=-1 -qsuppress=1500-036 -WF,-DHAVE_CONFIG_H
-q64 -g -qzerosize -c -o io.o ../../../src/01_macroavnew_ext/io.F90
"../../config.h", line 1.1: 1515-019 (S) Syntax is incorrect.
"../../config.h", line 2.1: 1515-019 (S) Syntax is incorrect.
This is because config.h is a file with C-style /* */ comments which won't work with free-format fortran code (which I think the -qfree=f90 option is setting - this isn't an option I've set myself).
I tried removing -qfree from the above compilation line and replacing it with -qfixed, but then got a bunch of errors along the lines of:
"../../config.h", line 1.0: 1515-005 (S) Continuation line is not permitted at beginning of program or after INCLUDE, EJECT, @PROCESS statements or comment directive. Line is ignored.
"../../config.h", line 2.0: 1515-005 (S) Continuation line is not permitted at beginning of program or after INCLUDE, EJECT, @PROCESS statements or comment directive. Line is ignored.
"../../config.h", line 4.0: 1515-005 (S) Continuation line is not permitted at beginning of program or after INCLUDE, EJECT, @PROCESS statements or comment directive. Line is ignored.
Can anyone suggest a way around this?
Thanks,
Jens