-
Notifications
You must be signed in to change notification settings - Fork 60
OpenCL file compiled by Khronos OpenCL Clang compiler+SPIRV-LLVM using cl_intel_subgroups+cl_intel_subgroups_short omits needed OpExtension "SPV_INTEL_subgroups" and also Vector16 capability in generated SPIR-V #228
Comments
Thanks for the report. I'll take a look. |
let me ask some somewhat related questions: it uses cl_intel_subgroups but I see in code also something like: so is this OpenCL file compilable yet to SPIR-V.. |
I had a look and here's what I found.
I'll address the SPIR-V consumption questions in the issue you filed in the GPU Compute Runtime repo (intel/compute-runtime#13), if that's OK, to keep the two issues separate. Thanks again! |
Vector16 is unfortunate name for the capability enabling 8-element vectors. Can we fix this inconsistency in SPIR-V specification? |
I created pull request #229 to address the Vector16 capability. I have a hacky fix for the extension handling that I've checked into a branch in my fork. The basic idea is to look at the capabilities the SPIR-V module requires, and to emit the appropriate SPIR-V OpExtensions as needed. It needs some work before I can create a pull request, but if you're curious feel free to have a look: https://github.com/bashbaug/SPIRV-LLVM/tree/spirv-extensions |
Hi, |
Hi, |
Hi @AlexeySotkin, |
@oscarbg, thanks for looking into this. Regarding integration with other tools we hope that new repository will support existing Khronos OpenCL C and OpenCL C++ compilers, but instead of supporting Clang forks on GitHub, we plan contributing OpenCL C/OpenCL C++ support to llvm.org repository (http://lists.llvm.org/pipermail/cfe-dev/2018-February/056972.html). So eventually we are going to enable OpenCL C and OpenCL C++ support in Clang with an option to produce SPIR-V form. |
really thanks @bader for the general overview of the current state of LLVM/Clang SPIRV support and how things are evolving.. |
Hi,
@bashbaug @AlexeySotkin @yxsamliu
the issue in fact is detailed here:
KhronosGroup/SPIRV-Tools#1327
can you please take a detailed look.. you have the OpenCL cl file, the compiler arguments and the resulting spirv file and output from spirv-val..
The text was updated successfully, but these errors were encountered: