-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mark host_dirty() and device_dirty() with no_discard. #8248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish this was the default in C++ :-/
Heh, it's not working... It says "attribute ignored". Why is this? Is the macro not properly defined to check compiler support? Or am I misunderstanding the compiler output? |
Dunno, but for a lark, try putting it before HALIDE_ALWAYS_INLINE? |
EDIT: This is not even true... You can do multiple |
We require C++17 at this point, we can just write it out explicitly without a macro |
b8f8e5d
to
6a4308b
Compare
Nevermind, you were right the order of the attributes mattered, as we mix |
Is the cmake issue fixed by this merge of main? If so, the buildbots need to be retriggered. However, some of the builds did run and complete successfully. So, I think this PR is okay, as it's only a C++-level change, and not really anything to do with the logic or workings of Halide. |
Lost quite some time, because I needed
set_host_dirty()
instead ofhost_dirty()
.