fftw: PGI compiler has trouble with avx2/avx-512 SIMD support (#20546)
* PGI compiler has trouble with avx2 SIMD support (https://github.com/FFTW/fftw3/issues/78) * Hew to the project's preferred indentation standard. * Expand '%nvhpc' logic to include '%pgi'. * Exceeded the max line-length. * Break up the long compound statement into nested if's. * Inadvertently picked up an extraneous file. * PGI compiler has trouble with avx2/avx-512 SIMD support, too.
This commit is contained in:
parent
e9f0473e26
commit
c214e4dd2d
1 changed files with 8 additions and 3 deletions
|
@ -111,9 +111,14 @@ def configure(self, spec, prefix):
|
|||
# float only
|
||||
float_simd_features = ['altivec', 'sse']
|
||||
|
||||
# Workaround NVIDIA compiler bug when avx512 is enabled
|
||||
if spec.satisfies('%nvhpc') and 'avx512' in simd_features:
|
||||
simd_features.remove('avx512')
|
||||
# Workaround PGI compiler bug when avx2 is enabled
|
||||
if spec.satisfies('%pgi') and 'avx2' in simd_features:
|
||||
simd_features.remove('avx2')
|
||||
|
||||
# Workaround NVIDIA/PGI compiler bug when avx512 is enabled
|
||||
if spec.satisfies('%nvhpc') or spec.satisfies('%pgi'):
|
||||
if 'avx512' in simd_features:
|
||||
simd_features.remove('avx512')
|
||||
|
||||
# NVIDIA compiler does not support Altivec intrinsics
|
||||
if spec.satisfies('%nvhpc') and 'vsx' in simd_features:
|
||||
|
|
Loading…
Reference in a new issue