-
Notifications
You must be signed in to change notification settings - Fork 768
[SYCL] Fix compilation issue introduced by d0d8a56 #16264
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
Conversation
fix compilation issue introduced by intel#15061
@sarnex the fix |
thx will merge once build passes |
build passed, merging early because change is trivial and build is broken on multiple platforms. will monitor postcommit. |
the error is caused by |
it is used in precommit, we build both with the problem is the compiler is different
so it seems like gcc's werror is much more lenient. maybe we should also use clang in precommit, and add a nightly job to build in gcc just to make sure it works? opinions @aelovikov-intel @uditagarwal97 |
@Naghasan Build is still broken with seemingly the same error
https://github.com/intel/llvm/actions/runs/12164078580/job/33924842681 Can you build with clang when verifying your fix locally? |
I think the cases like this one are rare enough and the current split between pre/post does the right job. Also, why would anyone use gcc for their normal day-to-day work anyway? ;) |
should we switch it so we use clang in precommit and gcc in post? |
If clang's werror is stricter, it makes sense to use clang in pre-commit and gcc in post. |
ive never seen a werror issue in precommit, so that seems to be the case. ill try switching it. |
I don't think is strictly "stricter" than the other. Wouldn't be surprised if we'll have same kind of situation after the switch. Anyhow, up to @sarnex and @uditagarwal97 to decide as they're the ones keeping our CI running (and many thanks to them for that!) |
thanks, ill try it and monitor it and if we see more postcommit fails the other way ill switch it back |
While on it, do you think we can add a windows build with OneAPI release (vs MSVC) in post or nightly? |
yeah let me try (gonna regret this prolly) |
im fixing the build in #16268 |
thanks @sarnex , apologies I was trapped in a meeting |
np |
These kind of issues should be caught in precommit now because of 5e0db3e |
Fix compilation issue introduced by intel#15061
This is a cherry-pick of #16264 and #16268 Patch-by: Victor Lomuller <[email protected]> Co-authored-by: Nick Sarnie <[email protected]>
fix compilation issue introduced by #15061