summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-03-25 11:54:51 +0100
committerDenis Davydov <davydden@gmail.com>2016-03-25 11:56:41 +0100
commit7f2db8c26793abb1977dbccd2ae8a3a1b5a46568 (patch)
treeff99c5d9b8a4a468369ba497ba78bb5078e053c6 /var
parentd096b155f45d97775affa2bdda640a22823cb73e (diff)
downloadspack-7f2db8c26793abb1977dbccd2ae8a3a1b5a46568.tar.gz
spack-7f2db8c26793abb1977dbccd2ae8a3a1b5a46568.tar.bz2
spack-7f2db8c26793abb1977dbccd2ae8a3a1b5a46568.tar.xz
spack-7f2db8c26793abb1977dbccd2ae8a3a1b5a46568.zip
fix w GCC 4.8 on Ubuntu but broke w GCC 5.3/Clang on OSX
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py26
1 files changed, 19 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index 3967d0ef0e..1f1601e537 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -48,7 +48,7 @@ class Trilinos(Package):
depends_on('netcdf+mpi')
depends_on('parmetis',when='+parmetis')
depends_on('mumps+metis+parmetis+shared',when='+mumps') # build errors with static libs
- # depends_on('scalapack') # see FIXME below
+ depends_on('scalapack')
depends_on('superlu-dist',when='+superlu-dist')
depends_on('hypre',when='+hypre')
depends_on('hdf5+mpi',when='+hdf5')
@@ -108,13 +108,13 @@ class Trilinos(Package):
libgfortran = os.path.dirname (os.popen('%s --print-file-name libgfortran.a' % join_path(mpi_bin,'mpif90') ).read())
options.extend([
'-DTrilinos_EXTRA_LINK_FLAGS:STRING=-L%s/ -lgfortran' % libgfortran,
- '-DTrilinos_ENABLE_Fortran=OFF' # FIXME: otherwise CMake's VerifyFortranC fails as it does not contain -lgfortran
+ '-DTrilinos_ENABLE_Fortran=ON' # FIXME: otherwise CMake's VerifyFortranC fails as it does not contain -lgfortran
])
# for build-debug only:
- # options.extend([
- # '-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE'
- # ])
+ options.extend([
+ '-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE'
+ ])
# suite-sparse related
if '+suite-sparse' in spec:
@@ -144,16 +144,22 @@ class Trilinos(Package):
# mumps
if '+mumps' in spec:
+ # FIXME:
+ # since we use mumps with MPI, it will certainly be build against Scalapack.
+ # Add scalapack lib here as well.
+ # This likely won't be need if Trilinos would compile with Scalapack
options.extend([
'-DTPL_ENABLE_MUMPS:BOOL=ON',
'-DMUMPS_LIBRARY_DIRS=%s' % spec['mumps'].prefix.lib,
'-DMUMPS_LIBRARY_NAMES=dmumps;mumps_common;pord' # order is important!
+# '-DMUMPS_LIBRARY_DIRS=%s;%s' % (spec['mumps'].prefix.lib,spec['scalapack'].prefix.lib),
+# '-DMUMPS_LIBRARY_NAMES=dmumps;mumps_common;pord;scalapack' # order is important!
])
# scalapack
options.extend([
- '-DTPL_ENABLE_SCALAPACK:BOOL=OFF', #FIXME: Undefined symbols for architecture x86_64: "_blacs_gridinfo__", referenced from: Amesos_Scalapack::RedistributeA() in Amesos_Scalapack.cpp.o
- #'-DSCALAPACK_LIBRARY_NAMES=scalapack' # FIXME: for MKL it's mkl_scalapack_lp64;mkl_blacs_mpich_lp64
+ '-DTPL_ENABLE_SCALAPACK:BOOL=ON', #FIXME: Undefined symbols for architecture x86_64: "_blacs_gridinfo__", referenced from: Amesos_Scalapack::RedistributeA() in Amesos_Scalapack.cpp.o
+ '-DSCALAPACK_LIBRARY_NAMES=scalapack' # FIXME: for MKL it's mkl_scalapack_lp64;mkl_blacs_mpich_lp64
])
# superlu-dist:
@@ -175,6 +181,12 @@ class Trilinos(Package):
'-DHAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON'
])
+ # python
+ if '~python' in spec:
+ options.extend([
+ '-DTrilinos_ENABLE_PyTrilinos:BOOL=OFF'
+ ])
+
# disable due to compiler / config errors:
options.extend([
'-DTrilinos_ENABLE_SEACAS=OFF',