From f2c523db1e1fcfd5257f74c873cfc54579bcdce6 Mon Sep 17 00:00:00 2001 From: zorun Date: Thu, 24 Dec 2020 20:17:35 +0100 Subject: [gcc] Make ISL optional by adding a +graphite variant (#20531) Fixes: #20515 Co-authored-by: Baptiste Jonglez --- var/spack/repos/builtin/packages/gcc/package.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2