summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzorun <github@bitsofnetworks.org>2020-12-24 20:17:35 +0100
committerGitHub <noreply@github.com>2020-12-24 20:17:35 +0100
commitf2c523db1e1fcfd5257f74c873cfc54579bcdce6 (patch)
treed0a56a7751a08de9c54787833129daf179e8fc29
parent4ef33a4cd77311ab0b0b6864d63515c24373fb78 (diff)
downloadspack-f2c523db1e1fcfd5257f74c873cfc54579bcdce6.tar.gz
spack-f2c523db1e1fcfd5257f74c873cfc54579bcdce6.tar.bz2
spack-f2c523db1e1fcfd5257f74c873cfc54579bcdce6.tar.xz
spack-f2c523db1e1fcfd5257f74c873cfc54579bcdce6.zip
[gcc] Make ISL optional by adding a +graphite variant (#20531)
Fixes: #20515 Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 7be4757bf9..7ea576e27f 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -98,6 +98,9 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
variant('bootstrap',
default=False,
description='add --enable-bootstrap flag for stage3 build')
+ variant('graphite',
+ default=False,
+ description='Enable Graphite loop optimizations (requires ISL)')
depends_on('flex', type='build', when='@master')
@@ -112,11 +115,11 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
# GCC 5.4 https://github.com/spack/spack/issues/6902#issuecomment-433072097
# GCC 7.3 https://github.com/spack/spack/issues/6902#issuecomment-433030376
# GCC 9+ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724
- depends_on('isl@0.14', when='@5.0:5.2')
- depends_on('isl@0.15', when='@5.3:5.9')
- depends_on('isl@0.15:0.18', when='@6:8.9')
- depends_on('isl@0.15:0.20', when='@9:9.9')
- depends_on('isl@0.15:', when='@10:')
+ depends_on('isl@0.14', when='@5.0:5.2 +graphite')
+ depends_on('isl@0.15', when='@5.3:5.9 +graphite')
+ depends_on('isl@0.15:0.18', when='@6:8.9 +graphite')
+ depends_on('isl@0.15:0.20', when='@9:9.9 +graphite')
+ depends_on('isl@0.15:', when='@10: +graphite')
depends_on('zlib', when='@6:')
depends_on('zstd', when='@10:')
depends_on('diffutils', type='build')