[SOLVED] Probable bugs 6.12.3 with SLURM and GSL
Posted: Mon Nov 12, 2012 12:59 am
I am not sure if the following are bugs or not but, but they look like it. Feel free to comment
SLURM problem:
We are using mvapich2 with slurm and there is no 'mpirun/mpiexec' due to this (srun
is used). It appears the configure script thinks MPI is broken due to this.
I had to use CC, FC, CXX env variables and hydra process manager (which includes mpirun) to
fool the installer.
MATH includes problem:
(configured with
--with-math-flavor="gsl" --with-math-incs="-I/export/modules/devel/gsl/1.15/gnu/include"
--with-math-libs="-L/export/modules/devel/gsl/1.15/gnu/lib -lgsl -lgslcblas" \
It appears the math includes which was set in Makefile is not passed to compilation. In
Makefile:
lib_math_incs = -I/export/modules/devel/gsl/1.15/gnu/include
with_math_incs = -I/export/modules/devel/gsl/1.15/gnu/include
Error (the /export/modules/devel/gsl/1.15/gnu/include/gsl/gsl_sf_bessel.h exists):
make[3]: Entering directory `/home/eyurtese/temp/abinit-6.12.3/src/01_gsl_ext'
mpicc -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/home/eyurtese/temp/abinit-6.12.3/fallbacks/exports/include -O3 -march=native -mtune=native -O3 -march=native -mtune=native -MT gsl_f90_sf_bessel_j0.o -MD -MP -MF .deps/gsl_f90_sf_bessel_j0.Tpo -c -o gsl_f90_sf_bessel_j0.o gsl_f90_sf_bessel_j0.c
gsl_f90_sf_bessel_j0.c:5:31: fatal error: gsl/gsl_sf_bessel.h: No such file or directory
compilation terminated.
make[3]: *** [gsl_f90_sf_bessel_j0.o] Error 1
make[3]: Leaving directory `/home/eyurtese/temp/abinit-6.12.3/src/01_gsl_ext'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eyurtese/temp/abinit-6.12.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eyurtese/temp/abinit-6.12.3'
make: *** [all] Error 2
I added $(with_math_incs) to /home/eyurtese/temp/abinit-6.12.3/src/01_gsl_ext/Makefile
at DEFAULT_INCLUDES and compilation continued, obviously a real fix is required:
DEFAULT_INCLUDES = -I. -I$(top_builddir)
vs
DEFAULT_INCLUDES = -I. $(with_math_incs) -I$(top_builddir)
make: *** [all] Error 2
SLURM problem:
We are using mvapich2 with slurm and there is no 'mpirun/mpiexec' due to this (srun
is used). It appears the configure script thinks MPI is broken due to this.
I had to use CC, FC, CXX env variables and hydra process manager (which includes mpirun) to
fool the installer.
MATH includes problem:
(configured with
--with-math-flavor="gsl" --with-math-incs="-I/export/modules/devel/gsl/1.15/gnu/include"
--with-math-libs="-L/export/modules/devel/gsl/1.15/gnu/lib -lgsl -lgslcblas" \
It appears the math includes which was set in Makefile is not passed to compilation. In
Makefile:
lib_math_incs = -I/export/modules/devel/gsl/1.15/gnu/include
with_math_incs = -I/export/modules/devel/gsl/1.15/gnu/include
Error (the /export/modules/devel/gsl/1.15/gnu/include/gsl/gsl_sf_bessel.h exists):
make[3]: Entering directory `/home/eyurtese/temp/abinit-6.12.3/src/01_gsl_ext'
mpicc -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/home/eyurtese/temp/abinit-6.12.3/fallbacks/exports/include -O3 -march=native -mtune=native -O3 -march=native -mtune=native -MT gsl_f90_sf_bessel_j0.o -MD -MP -MF .deps/gsl_f90_sf_bessel_j0.Tpo -c -o gsl_f90_sf_bessel_j0.o gsl_f90_sf_bessel_j0.c
gsl_f90_sf_bessel_j0.c:5:31: fatal error: gsl/gsl_sf_bessel.h: No such file or directory
compilation terminated.
make[3]: *** [gsl_f90_sf_bessel_j0.o] Error 1
make[3]: Leaving directory `/home/eyurtese/temp/abinit-6.12.3/src/01_gsl_ext'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eyurtese/temp/abinit-6.12.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eyurtese/temp/abinit-6.12.3'
make: *** [all] Error 2
I added $(with_math_incs) to /home/eyurtese/temp/abinit-6.12.3/src/01_gsl_ext/Makefile
at DEFAULT_INCLUDES and compilation continued, obviously a real fix is required:
DEFAULT_INCLUDES = -I. -I$(top_builddir)
vs
DEFAULT_INCLUDES = -I. $(with_math_incs) -I$(top_builddir)
make: *** [all] Error 2