Repository navigation
TST: Enable NPY_RELAXED_STRIDES_DEBUG environment variable. - #8999
Conversation
eric-wieser
left a comment
There was a problem hiding this comment.
Needs a release note, but otherwise looks good to me.
930b9cd to
19c968e
Compare
|
Heh, fair catch ;) Fixed. |
There was a problem hiding this comment.
There are now 3 or 4 PRs that make this change...
There was a problem hiding this comment.
Well, one of them has to go first ;) Easy fix on line if homu complains, but now I'm actually curious if it will cause a merge problem.
There was a problem hiding this comment.
Yep, and this one looks the least controversial
There was a problem hiding this comment.
Might be worth explaining what a typical "smoke out" looks like, and specifying that "bogus" means "extremely large".
Could do with a comma after "bogus values", too.
There was a problem hiding this comment.
To be sure. IIRC correctly, the usual is an IndexError but I am not sure.
|
@matthew-brett If you are building daily wheels for testing purposed you may want to put |
Setting NPY_RELAXED_STRIDES_DEBUG=1 in the enviroment when relaxed stride checking is enabled will cause numpy to be compiled with affected strides set to bogus values in order to help smoke out incorrect usage of strides in downstream projects.
19c968e to
39a21dd
Compare
| --------------------------------------------------------- | ||
| Setting NPY_RELAXED_STRIDES_DEBUG=1 in the enviroment when relaxed stride | ||
| checking is enabled will cause numpy to be compiled with the affected strides | ||
| set to the maximum value of npy_intp in order to help detect invalid usage of |
There was a problem hiding this comment.
Still would like a comma after npy_intp, but not too important
There was a problem hiding this comment.
When a subordinate clause follows an independent clause, a comma is not needed.
I used a comma in the sentence above because the subordinate clause comes first.
Two examples, two cases. Two sentence fragments ;)
There was a problem hiding this comment.
Oh, I agree it's not necessary (thanks for the formal explanation though) - but am I right in saying it would be valid?
|
Probably good to wait for a second opinion from someone who's used this before, but I'd be ok with this being merged as is. |
|
It was discussed on the list. AFAIK, I'm the only one who has made use of the two options and carrying along a patch to apply to releases was getting old. If Matthew enables the option for his nightly wheel build that is used for testing, there will not be much change. |
Setting NPY_RELAXED_STRIDES_DEBUG=1 in the enviroment when relaxed
stride checking is enabled will cause numpy to be compiled with affected
strides set to bogus values in order to help smoke out incorrect usage
of strides in downstream projects.