FBGEMM: GCC 5+ and AVX2 required (#24356)

This commit is contained in:
Adam J. Stewart 2021-06-18 08:49:18 -05:00 committed by GitHub
parent 57467d05e1
commit 8ad05d6a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')