Skip to content

Disable py-numpy AVX512 instructions when compiled with Intel#498

Merged
climbfuji merged 2 commits intoJCSDA:spack-stack-devfrom
DavidHuber-NOAA:fix/numpy
Jan 14, 2025
Merged

Disable py-numpy AVX512 instructions when compiled with Intel#498
climbfuji merged 2 commits intoJCSDA:spack-stack-devfrom
DavidHuber-NOAA:fix/numpy

Conversation

@DavidHuber-NOAA
Copy link
Collaborator

@DavidHuber-NOAA DavidHuber-NOAA commented Jan 8, 2025

Description

This disables AVX512 instructions when compiling numpy with Intel classic compilers to prevent. The instructions produce NaNs when performing basic array operations. Further discussions can be found in
matplotlib/matplotlib#28762
numpy/numpy#27840
JCSDA/spack-stack#1276

Closes JCSDA/spack-stack#1276

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have run the unit tests before creating the PR

…47941)

* Disable numpy AVX512 when compiled with Intel classic

* Add py-numpy v1.26.5

* Add patch to handle AVX512 conversions

* Remove unneeded patch.

* Remove unnecessary tag

* Move blas_config_settings to config_settings

* Cleaned up blas settings
Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your diligence getting this into spack develop!

@climbfuji climbfuji merged commit afa5072 into JCSDA:spack-stack-dev Jan 14, 2025
15 checks passed
@DavidHuber-NOAA DavidHuber-NOAA deleted the fix/numpy branch August 15, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

matplotlib 3.8.0 is unable to create a basic plot

3 participants