-
Notifications
You must be signed in to change notification settings - Fork 45
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
Const for CeedQFunctionGetSourcePath #1488
Conversation
Please hold off on this; I have a few more. |
There are a few that have to be non-const. Some of them are intended for the user to free the string after they are done |
|
Add const to CeedQFunctionLoadSourceToBuffer output argument. If we had Result, this would look like let const source_buffer = CeedQFunctionLoadSourceToBuffer()?; The caller is free to cast in the const when passing the output variable if they want this semantic: let mut source_buffer = CeedQFunctionLoadSourceToBuffer()?;
I recall reading Linus writing on this point some time ago, advocating using Have a look at my commit message for my thoughts on I'm unsure about my change to |
Ahh, I didn't realize you could |
480f3ad
to
09095ac
Compare
Ok, looks like CI is happy. I'm fine merging with the SYCL change since it should be fine and mirrors the changes in CUDA/HIP that pass |
Nope, wait a minute. I reproduced and will fix things on Noether. |
Should be good now once the pipeline passes. To build, I use: $ . /opt/intel/oneapi/setvars.sh
$ make CC=icx CXX=icpx SYCL_DIR=/opt/intel/oneapi/compiler/2023.2.0/linux We could make a new job in |
4dcf9df
to
22070f9
Compare
Small issue in the CUDA/HIP backends that's fixed now
and manually checked SYCL is still fine with my update |
CI is wrapping up and will pass. I think we just need an approval + merge |
Missed a
const