summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorbernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-09-27 17:58:47 +0200
committerGitHub <noreply@github.com>2021-09-27 08:58:47 -0700
commit0cc80f5118071d4855a4a99c7b656a773bf408df (patch)
tree8ced39cb9dff25624f37e7f5f693a3c25d914964 /var
parentffedc3637c397e23c1d02d1aed99c8e75cc174a1 (diff)
downloadspack-0cc80f5118071d4855a4a99c7b656a773bf408df.tar.gz
spack-0cc80f5118071d4855a4a99c7b656a773bf408df.tar.bz2
spack-0cc80f5118071d4855a4a99c7b656a773bf408df.tar.xz
spack-0cc80f5118071d4855a4a99c7b656a773bf408df.zip
spindle: It seems it needs mpi.h to compile, adding depends on mpi. (#26151)
Workaround this compile error for gcc by adding -Wno-narrowing for it: spindle_logd.cc:65:76: error: narrowing conversion of '255' from 'int' to 'char' spindle_logd.cc:65:76: error: narrowing conversion of '223' from 'int' to 'char' spindle_logd.cc:65:76: error: narrowing conversion of '191' from 'int' to 'char' spindle 0.8.1 wants to compile tests with mpi.h, newer versions need mpicc, thus add: depends_on("mpi"). Spindle supports the --no-mpi to disable MPI.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/spindle/package.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/spindle/package.py b/var/spack/repos/builtin/packages/spindle/package.py
index 1ebbc29fb2..da5863163e 100644
--- a/var/spack/repos/builtin/packages/spindle/package.py
+++ b/var/spack/repos/builtin/packages/spindle/package.py
@@ -13,8 +13,21 @@ class Spindle(AutotoolsPackage):
linked libraries, causing site-wide performance problems.
"""
homepage = "https://computing.llnl.gov/project/spindle/"
- url = "https://github.com/hpc/Spindle/archive/v0.8.1.tar.gz"
+ url = "https://github.com/hpc/Spindle/archive/v0.12.tar.gz"
+ version('0.12', sha256='3fd9d0afefa9072fffdf2cfd80a0b5e557e201a0b0eb02e7379eae65e64eb1f2')
version('0.8.1', sha256='c1e099e913faa8199be5811dc7b8be0266f0d1fd65f0a3a25bb46fbc70954ed6')
depends_on("launchmon")
+ # All versions provide the runtime option --no-mpi to not use MPI, but mpi
+ # is needed for the build:
+ # 0.8.1 wants to compile tests with mpi.h, newer versions need mpicc
+ depends_on("mpi")
+
+ # Workaround for:
+ # spindle_logd.cc:65:76: error: narrowing conversion of '255' from 'int' to 'char'
+ # spindle_logd.cc:65:76: error: narrowing conversion of '223' from 'int' to 'char'
+ # spindle_logd.cc:65:76: error: narrowing conversion of '191' from 'int' to 'char'
+ @when('@0.8.1 %gcc')
+ def setup_build_environment(self, env):
+ env.append_flags('CPPFLAGS', '-Wno-narrowing')