GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — ENH: use c11 atomics for `numpy` by kumaraditya303 · Pull Request #30489 · numpy/numpy Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice simplification. I agree that relaxed loads should be fine - in the worst case there will be some blocking or duplication of work in code paths for cache misses.
Just to be extra sure, I wrote a little test script which doesn't produce any race reports on a TSan-instrumented build of 3.14:
import numpy as np
from numpy.testing._private.utils import run_threaded
dt = np.dtype(('i4', [('a', '<i2'), ('b', '<i2')]))
def worker(b):
b.wait()
hash(dt)
run_threaded(worker, 500, pass_barrier=True)
I'd like someone else who knows numpy's build infrastructure on Windows to weigh in about the new experimental build flag.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is worth trying indeed.
The /experimental:c11atomics was added in VS 2022 version 17.5 Preview 2, which I believe corresponds to toolchain version 19.35. Right now the minimum we support is 19.20, so before merging we should bump that version number on line 28 of the top-level meson.build file to 19.35. That way we'll get a clear error message if the installed compiler is too old.
Once that is changed, this LGTM I think.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I have updated the msvc version. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It occurs to me: let's add a release note for the MSVC minimum version bump too. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Where do I need to add it? I am not familar with how numpy handles release notes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
See the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, I added it to the release notes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
CI failures are due to transient network issues during the docs build and are unrelated. Let’s merge this and we’ll see if anyone running against our |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.