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:
QuellynSnead 2020-12-24 21:33:57 -07:00 committed by GitHub
parent e9f0473e26
commit c214e4dd2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: