-
Notifications
You must be signed in to change notification settings - Fork 790
[Driver][SYCL] Enable use of response files for sycl link step #2052
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
[Driver][SYCL] Enable use of response files for sycl link step #2052
Conversation
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.
LGTM. Cool to learn a new concept!
@mdtoguchi, as a second thought, should |
Done - good suggestion! |
It was found that with large command lines, with large numbers of files, The default response file usage for sycl-link would end up failing at the llvm-link stage due to the length of the command line. All of the tools within the sycl-link step (clang-offload-wrapper, llvm-link, llvm-spirv, llc) all support full response files. Go ahead and enable usage of full response files for sycl-link. Signed-off-by: Michael D Toguchi <[email protected]>
Signed-off-by: Michael D Toguchi <[email protected]>
Looks like the response file usage has been updated. The setting is now at the addCommand level opposed to the tool level. Modifications coming soon. |
Signed-off-by: Michael D Toguchi <[email protected]>
f280bbb
to
ec11f49
Compare
Whoops, sorry, I've somehow missed out on the latest branch update. |
In SPIRVReader, we erase unused functions pretty late, but we were applying the ExtInst for `--spirv-preserve-auxdata` after that, causing us to try to work on a deleted function which lead to a crash. This isn't a problem for the SPIRVWriter case because the unused function deletion happens way earlier. Signed-off-by: Sarnie, Nick <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@9823690
It was found that with large command lines, with large numbers of files,
The default response file usage for sycl-link would end up failing at
the llvm-link stage due to the length of the command line. All of the
tools within the sycl-link step (clang-offload-wrapper, llvm-link,
llvm-spirv, llc) all support full response files. Go ahead and enable
usage of full response files for sycl-link.
Signed-off-by: Michael D Toguchi [email protected]