summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/fbgemm/package.py8
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')