FBGEMM: GCC 5+ and AVX2 required (#24356)
This commit is contained in:
parent
57467d05e1
commit
8ad05d6a74
@ -35,4 +35,12 @@ class Fbgemm(CMakePackage):
|
|||||||
depends_on('python', type='build')
|
depends_on('python', type='build')
|
||||||
depends_on('llvm-openmp', when='%apple-clang')
|
depends_on('llvm-openmp', when='%apple-clang')
|
||||||
|
|
||||||
|
conflicts('%gcc@:4', msg='FBGEMM requires GCC 5+')
|
||||||
|
|
||||||
generator = 'Ninja'
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user