-
Notifications
You must be signed in to change notification settings - Fork 793
[SYCL][NativeCPU] Add libclc at compile time. #19346
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
This matches what is done for CUDA and HIP.
cc @intel/llvm-reviewers-cuda, comments welcome on that TODO comment for CUDA. |
if (TC->getTriple().isNVPTX() || isNativeCPU) { | ||
// For NVPTX we need to also link libclc at the same stage that we link | ||
// all of the unbundled SYCL libdevice objects together. | ||
// TODO: libspirv should have been linked in already by |
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.
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.
Ah, thanks, that makes sense. In that case, I will tweak the comment accordingly but not make any functional changes for CUDA. For Native CPU, we don't link in those other libdevice files anyway so we are not affected by that.
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.
That's right, at least for CUDA/HIP the main offenders seem to be the iteration space functions, see: https://github.com/intel/llvm/blob/sycl/libdevice/spirv_vars.h#L17
@intel/llvm-gatekeepers This can be merged, thanks. |
This matches what is done for CUDA and HIP.