summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-03-23 19:35:49 +0100
committerDenis Davydov <davydden@gmail.com>2016-03-25 11:56:40 +0100
commit3f12a51759fcdd3b11867cb849fc2aa81a4941ef (patch)
treea6be0418981f43152423bdfd097128abef4bb8b6 /var
parente51fe2934e0189aa5c33c8663819d23e7706f809 (diff)
downloadspack-3f12a51759fcdd3b11867cb849fc2aa81a4941ef.tar.gz
spack-3f12a51759fcdd3b11867cb849fc2aa81a4941ef.tar.bz2
spack-3f12a51759fcdd3b11867cb849fc2aa81a4941ef.tar.xz
spack-3f12a51759fcdd3b11867cb849fc2aa81a4941ef.zip
keep fiddling
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index fb14e1f36c..cdc2bf2379 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -1,6 +1,11 @@
from spack import *
import os
+# Trilinos is complicated to build, as an inspiration a couple of links to other repositories which build it:
+# https://github.com/hpcugent/easybuild-easyblocks/blob/master/easybuild/easyblocks/t/trilinos.py#L111
+# https://github.com/koecher/candi/blob/master/deal.II-toolchain/packages/trilinos.package
+# https://gitlab.com/configurations/cluster-config/blob/master/trilinos.sh
+# https://github.com/Homebrew/homebrew-science/blob/master/trilinos.rb
class Trilinos(Package):
"""The Trilinos Project is an effort to develop algorithms and enabling technologies within an object-oriented
software framework for the solution of large-scale, complex multi-physics engineering and scientific problems.
@@ -59,11 +64,11 @@ class Trilinos(Package):
'-DTPL_ENABLE_MPI:BOOL=ON',
'-DMPI_BASE_DIR:PATH=%s' % spec['mpi'].prefix,
'-DTPL_ENABLE_BLAS=ON',
- '-DBLAS_LIBRARY_NAMES=blas',
- '-DBLAS_LIBRARY_DIRS=/usr/lib', # % spec['blas'].prefix, #FIXME
+ '-DBLAS_LIBRARY_NAMES=blas', # FIXME: for Intel, Clang+GNU, GNU; easybuild add gfortran here...
+ '-DBLAS_LIBRARY_DIRS=%s' % spec['blas'].prefix.lib,
'-DTPL_ENABLE_LAPACK=ON',
'-DLAPACK_LIBRARY_NAMES=lapack',
- '-DLAPACK_LIBRARY_DIRS=/usr/lib', # % spec['lapack'].prefix, #FIXME
+ '-DLAPACK_LIBRARY_DIRS=%s' % spec['lapack'].prefix,
'-DTPL_ENABLE_Boost:BOOL=ON',
'-DBoost_INCLUDE_DIRS:PATH=%s' % spec['boost'].prefix.include,
'-DBoost_LIBRARY_DIRS:PATH=%s' % spec['boost'].prefix.lib,
@@ -74,9 +79,9 @@ class Trilinos(Package):
'-DTPL_ENABLE_HYPRE:BOOL=ON',
'-DTPL_ENABLE_HDF5:BOOL=ON',
# Need to use MPI wrappers, otherwise: Undefined symbols for architecture x86_64: "_mpi_abort_","_mpi_allgatherv_", etc from MUMPS
- '-DCMAKE_C_COMPILER=%s' % join_path(mpi_bin,'mpicc'), # FIXME: dont hardcode compiler name
- '-DCMAKE_CXX_COMPILER=%s' % join_path(mpi_bin,'mpicxx'),
- '-DCMAKE_Fortran_COMPILER=%s' % join_path(mpi_bin,'mpif90')
+ #'-DCMAKE_C_COMPILER=%s' % join_path(mpi_bin,'mpicc'), # FIXME: dont hardcode compiler name
+ #'-DCMAKE_CXX_COMPILER=%s' % join_path(mpi_bin,'mpicxx'),
+ #'-DCMAKE_Fortran_COMPILER=%s' % join_path(mpi_bin,'mpif90')
])
# Fortran lib