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

#error "buffer_larger_than_two_gigs requires assertions" #8550

Open
LebedevRI opened this issue Jan 9, 2025 · 2 comments
Open

#error "buffer_larger_than_two_gigs requires assertions" #8550

LebedevRI opened this issue Jan 9, 2025 · 2 comments

Comments

@LebedevRI
Copy link
Contributor

https://github.com/halide/Halide/blob/release/19.x/test/error/buffer_larger_than_two_gigs.cpp#L4-L6
is that actually nessesary/correct especially given
https://github.com/halide/Halide/blob/release/19.x/src/Buffer.h#L142-L148
?

Though src/LLVM_Headers.h / src/Util.h suggests Halide should be built with -UNDEBUG,
i wish it would be either better documented or better yet cmakefiles should add_compile_definitions("-UNDEBUG")...

Thanks!

@alexreinking
Copy link
Member

alexreinking commented Jan 15, 2025

or better yet cmakefiles should add_compile_definitions("-UNDEBUG")...

As a matter of policy, we do not use directory commands in the Halide CMake codebase. Instead, we prefer the target_* prefixed commands, such as target_compile_definitions. Which targets are causing problems here? Is there something that isn't covered by the following code?

include(WipeStandardFlags)
wipe_standard_flags("[/-]D *NDEBUG")
wipe_standard_flags("[/-]O[^ ]+")

@LebedevRI
Copy link
Contributor Author

LebedevRI commented Jan 20, 2025

No, it does not appear to be sufficient:
https://buildd.debian.org/status/fetch.php?pkg=halide&arch=i386&ver=19.0.0-3&stamp=1736407332&raw=0
Maybe it needs to also wipe CMAKE_${L}_FLAGS?

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

2 participants