-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix(sycl): Replaces pragma once with include guards #1709
Conversation
I'd double check the other Sycl JiT files Note - I'm out next week and won't be approving anything |
9aa3e1a
to
37d37c9
Compare
OpenCL doesn't really like pragma once evidently. I think we've been 'getting away' with it previously as the JIT processing automatically doesn't allow for nested includes, but the same is not done for <ceed/types.h>?
37d37c9
to
7f836c3
Compare
Rebased after merging #1703 |
@@ -7,7 +7,8 @@ | |||
|
|||
/// @file | |||
/// Public header for types and macros used in user QFunction source code | |||
#pragma once | |||
#ifndef CEED_QFUNCTION_DEFS_H |
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.
Small note - I've seen some people recommend both. Not sure I fully understand the argument why though
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.
Yeah, both is a bit perplexing... Maybe to avoid possible guard name conflicts?
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 think for a while #pragma once
gave faster compile times, but nowadays that's less of a factor
OpenCL doesn't really like pragma once evidently. I think we've been 'getting away' with it previously as the JIT processing automatically doesn't allow for nested includes, but the same is not done for <ceed/types.h>?