Skip to content

Not use vDSP basics for >32-bit array lengths - #7189

Merged
PaulWessel merged 1 commit into
masterfrom
vDSP-defense
Jan 3, 2023
Merged

PaulWessel merged 1 commit into
masterfrom
vDSP-defense

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

For unclear reasons I am getting a crash in the Macos Accelerate framework function vDSP_vsmul which simply scales all array elements by a constant. We do this every time we write a grid and specify a scaling of offset via modifiers. SInce this code is unchanged for a decade and works fine for everybody, I assume very few are writing grids that exceed the 32-bit count and apply scaling/offset. I have filed an issue with Apple but for now any array longer than LONG_MAX will get the standard manual treatment. With this, I do not get the crash anymore. If there is useful feedback from Apple (I doubt it) we can revise this issue accordingly. Meanwhile, Linux and Windows are completely unaffected and other macOS users with normal-sized grids will not see any change anyway.

For unclear reasons I am getting a crash in the Macos Accelerate framework function vDSP_vsmul which simply scales all array elements by a constant.  SInce this code is unchanged for a decade and works fine for everybody, I assume very few are writing grids that exceed the 23-bit count.  I havr filed an issue with Apple but for now any array longer than LONG_MAX will get the standard manual treatment.  With this, I do not get the crash anymore.  If there is useful feedback from Apple (I doubt it) we can revise this issue accordingly.
@PaulWessel PaulWessel added bug Something isn't working maintenance Boring but important stuff for the core devs labels Jan 3, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Jan 3, 2023
@PaulWessel
PaulWessel requested a review from joa-quim January 3, 2023 14:49
@PaulWessel PaulWessel self-assigned this Jan 3, 2023
@PaulWessel
PaulWessel merged commit 598c6f9 into master Jan 3, 2023
@PaulWessel
PaulWessel deleted the vDSP-defense branch January 3, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants