Skip to content

BUG: Add cpp atomic support - #28234

Merged
charris merged 2 commits into
numpy:mainfrom
ngoldbaum:add-cpp-atomic-support
Jan 27, 2025
Merged

charris merged 2 commits into
numpy:mainfrom
ngoldbaum:add-cpp-atomic-support

Conversation

@ngoldbaum

Copy link
Copy Markdown
Member

Fixes #28106

This builds and passes the test on my Mac but let's see what the full CI says.

The code I'm adding is cribbed from CPython's pyatomic.h and pyatomic_std.h.

Comment thread numpy/_core/src/common/npy_atomic.h Resolved
@charris

charris commented Jan 27, 2025

Copy link
Copy Markdown
Member

Should we backport this?

@ngoldbaum ngoldbaum added the 09 - Backport-Candidate PRs tagged should be backported label Jan 27, 2025
@matthew-brett

matthew-brett commented Jan 27, 2025 •

Copy link
Copy Markdown
Contributor

Nice - thanks! - with the fix at #28235, this allows the Numpy build to work without failure on WoA, with clang-cl.

@ngoldbaum

ngoldbaum commented Jan 27, 2025 •

Copy link
Copy Markdown
Member Author

I think this should be safe to backport.

@charris
charris merged commit 32a6b53 into numpy:main Jan 27, 2025
@charris

charris commented Jan 27, 2025

Copy link
Copy Markdown
Member

Thanks Nathan.

charris pushed a commit to charris/numpy that referenced this pull request Jan 27, 2025
* BUG: add C++ support to npy_atomic.h

* MAINT: delete outdated comment
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 27, 2025
charris added a commit that referenced this pull request Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building NumPy from source for Windows on ARM using Clang-cl compiler

3 participants