-
Notifications
You must be signed in to change notification settings - Fork 734
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
[SYCL][Driver] Enable PCH inclusion while performing host compilation with -fsycl #9864
Conversation
Any thoughts on consideration for allowing the use of PCH files with -fsycl, but restricting to only the host side? |
What problems do we need to solve to enable PCH for device compilers? @romanovvlad, FYI. |
If the generation of the PCH files is OK for device, the issue is consumption. We could take it in a step in the direction of 'fat PCH' files. If we encounter a fat PCH input file, we would recognize the targets, unbundle and pass along the unbundled PCH files to the respective compilations (host/device). For any device targets that are not found, we would ignore for those targets. Pass along the host variant to the host compile. |
I noticed that there is some problem with deserialization of SYCL builtins , see fix here: https://github.com/romanovvlad/llvm/pull/7/files#diff-e2fdcbb3b7d1e3d5aa680d864906f9c49605080caa556ca2500c72b9c7a182c4R1815 |
This won't resolve the problem Mike mentioned, but I think we need to make this fix anyway. @elizabethandrews, @premanandrao, FYI. |
@bader Can you please merge the changes in this PR? Thanks! |
Yes, but it's better to ping @intel/llvm-gatekeepers team as described in the contribution guide. |
This PR allows users to include a Pre-Compiled header (PCH) file while performing the host compilation step with
-fsycl
.// Create PCH
clang++ -x c-header test.h
// Use PCH