diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2021-06-18 08:49:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 08:49:18 -0500 |
commit | 8ad05d6a74ba8c1e718b51b7b3b1cd43d484d7e6 (patch) | |
tree | 122989f96cae5d3ce8bd8cd1a859a9297ef8df3f | |
parent | 57467d05e14baeae963fc3b77db2928feae91abe (diff) | |
download | spack-8ad05d6a74ba8c1e718b51b7b3b1cd43d484d7e6.tar.gz spack-8ad05d6a74ba8c1e718b51b7b3b1cd43d484d7e6.tar.bz2 spack-8ad05d6a74ba8c1e718b51b7b3b1cd43d484d7e6.tar.xz spack-8ad05d6a74ba8c1e718b51b7b3b1cd43d484d7e6.zip |
FBGEMM: GCC 5+ and AVX2 required (#24356)
-rw-r--r-- | var/spack/repos/builtin/packages/fbgemm/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fbgemm/package.py b/var/spack/repos/builtin/packages/fbgemm/package.py index 16ac75611f..fde068f7be 100644 --- a/var/spack/repos/builtin/packages/fbgemm/package.py +++ b/var/spack/repos/builtin/packages/fbgemm/package.py @@ -35,4 +35,12 @@ class Fbgemm(CMakePackage): depends_on('python', type='build') depends_on('llvm-openmp', when='%apple-clang') + conflicts('%gcc@:4', msg='FBGEMM requires GCC 5+') + generator = 'Ninja' + + @run_before('cmake') + def check_requirements(self): + if 'avx2' not in self.spec.target: + raise RuntimeError( + 'FBGEMM requires a CPU with support for AVX2 instruction set or higher') |