Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ENH: Detect CPU features on FreeBSD / OpenBSD RISC-V64. #29224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Jun 18, 2025

No description provided.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jun 18, 2025
@@ -857,8 +857,14 @@ static void
npy__cpu_init_features(void)
{
memset(npy__cpu_have, 0, sizeof(npy__cpu_have[0]) * NPY_CPU_FEATURE_MAX);

#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
Copy link
Member

Choose a reason for hiding this comment

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

This changes the logic and doesn't just extend it. Why not

#if defined(__FreeBSD__) || defined(__OpenBSD__)
,,,
#else
...
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, just as the ARM / PowerPC code does the exact same thing. The current code is Linux specific and does not build.

@brad0 brad0 force-pushed the elf_aux_info_riscv64 branch from 975833e to 5cbc0bc Compare June 19, 2025 03:52
@charris charris merged commit 80833c5 into numpy:main Jun 20, 2025
91 of 94 checks passed
@github-project-automation github-project-automation bot moved this from Pending authors' response to Completed in NumPy first-time contributor PRs Jun 20, 2025
@charris
Copy link
Member

charris commented Jun 20, 2025

Thanks @brad0 .

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants