-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][ESIMD] Prepare LLVM IR for OS spirv translator #2112
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
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.
The driver part LGTM
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.
@NikitaRudenkoIntel, please, fix build failuires.
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.
llvm/lib/SYCLLowerIR/CMakeLists.txt changes look okay to me.
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.
FE changes LGTM. I don't know the reason why metadata change from 6 to 0 is required but the change itself is fine.
I did not check the CMake changes since I am not very familiar with CMake.
The Khronos translator does not have source language "6". In vector compute patches we use other approach to decide on how to translate VC-specific things |
@AGindinson - please re-approve |
@@ -42,6 +42,8 @@ const char *SYCL::Linker::constructLLVMSpirvCommand(Compilation &C, | |||
} else { | |||
CmdArgs.push_back("-spirv-max-version=1.1"); | |||
CmdArgs.push_back("-spirv-ext=+all"); | |||
if (C.getArgs().hasArg(options::OPT_fsycl_esimd)) |
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.
Not in a scope of this patch, but I think we shall add another option to enable translation of unknown to the translator intrinsics for users, for example: #2122
eedacd9
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, thanks!
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.
@NikitaRudenkoIntel, in DPC++ llvm-spirv is called through another "driver" - llvm-foreach. I suggested a change which should fix the clang/test/Driver/sycl-offload.c failure.
@bader, CUDA buildbot failed with CMake Error at /usr/local/share/cmake-3.15/Modules/FindCUDA.cmake:700 (message): This does not seem related to this patch. Since it is approved and all other checks passed - do you think it can be merged? |
Improvements to align CTS and Spec for Context
No description provided.