ngfft 0 values on ibm xlf90

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

ngfft 0 values on ibm xlf90

Post by mverstra » Fri Apr 09, 2010 5:17 pm

After some thrashing, I have succeeded in compiling on an IBM platform (altamira) with xlf90 mpich-gm, but the executable has a problem with many of the tests (I didn't go beyond the fast so far).

ngfft has some "0" values instead of the correct finite integers. As a result there are errors concerning the G sphere and FFT box.

> getcut: wavevector= 0.0000 0.0000 0.0000 ngfft= 24 0 0

Does anyone have an idea what is wrong?

Tests fast 2 and 30 pass, but the others fail...


Matthieu
Matthieu Verstraete
University of Liege, Belgium

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: ngfft 0 values on ibm xlf90

Post by mverstra » Mon Apr 12, 2010 11:12 am

Ok, the problem is in the optimization of routines in 57_iovars.

The attached .ac file works for the altamira setup (powerpc, xlf 10, linux) in sequential

Matthieu


login1_seq.ac


# ---------------------------------------------------------------------------- #
# Global build options #
# ---------------------------------------------------------------------------- #
enable_64bit_flags="yes"
enable_optim="yes"

# Preprocessing #
CPP="cpp"

# C support #
CC="xlc"
# Set optimizations for C source files (overrides auto-detection)
with_cc_optflags=" -qlanglvl=stdc99 -O3 -q64 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-031:1
520-003"

# C++ support #
CXX="xlc++"

# Fortran support #
FC="xlf90"
with_fc_optflags="-O3 -q64 -qhot -lxlopt -qarch=auto -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=a
uto"
enable_fc_wrapper="yes"

# Build customization #
fcflags_opt_63_bader="-O3 -q64 -qarch=auto -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"
fcflags_opt_57_iovars="-O0 -q64 -qarch=auto -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"

# Libraries and linking #
AR="ar"
# do not use on altamira - gnu ar is present
with_ar_optflags=""

# MPI support #
enable_mpi="no"
enable_mpi_io="no"
with_mpi_runner=""

# External libraries #
enable_gw_dpc="yes"
enable_nightly="no"
enable_test_abirules="no"
with_fc_vendor="ibm"
with_fc_version="10.1"
Matthieu Verstraete
University of Liege, Belgium

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: ngfft 0 values on ibm xlf90

Post by mverstra » Mon Apr 12, 2010 3:22 pm

Here is a config file for parallel compilation


enable_64bit_flags="yes"
enable_optim="yes"


CPP="cpp"
CC="mpicc"
with_cc_optflags=" -qlanglvl=stdc99 -O3 -q64 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-031:1520-003"
CXX="mpiCC"

FC="mpif90"
with_fc_optflags="-O3 -q64 -qhot -lxlopt -qarch=auto -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"
enable_fc_wrapper="yes"
fcflags_opt_63_bader="-O3 -q64 -qarch=auto -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"
fcflags_opt_57_iovars="-O0 -q64 -qarch=auto -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"

AR="ar"
# do not use on altamira - gnu ar is present
with_ar_optflags=""

enable_mpi="yes"
enable_mpi_io="yes"
with_mpi_runner="/usr/local/bin/srun"

enable_gw_dpc="yes"
enable_nightly="no"
enable_test_abirules="no"
with_fc_vendor="ibm"
with_fc_version="10.1"
Matthieu Verstraete
University of Liege, Belgium

Locked