Skip to content
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

Alternative to --check-bounds=no? #2244

Open
johnomotani opened this issue Jan 21, 2025 · 0 comments
Open

Alternative to --check-bounds=no? #2244

johnomotani opened this issue Jan 21, 2025 · 0 comments

Comments

@johnomotani
Copy link

@sloede I've seen that you commented on a few Discourse threads and issues about the problems with --check-bounds=no (and helped me out once or twice - thanks!). I started another discussion thread recently, which got an interesting suggestion (https://discourse.julialang.org/t/removing-bounds-checking-for-hpc-check-bounds-unsafe/124897/17) to make a custom array package to disable just the bounds checks on array accesses. I started work on one, with some promising initial results for my code (https://discourse.julialang.org/t/removing-bounds-checking-for-hpc-check-bounds-unsafe/124897/20), but (unless there's a better design that I haven't thought of) it needs wrappers to access the optimised, Array-specialised implementations of various packages (LinearAlgebra, SparseArrays, etc.) so other contributors who want to support more things would be welcome! It's still experimental though, and I haven't yet decided whether to use it for my code, although I'm leaning towards making the jump. The package is InboundsArrays.jl:
https://github.com/InboundsArrays/InboundsArrays.jl

If anyone here has thoughts, they'd be very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant