{"action":"created","issue":{"url":"https://api.github.com/repos/intel/compute-runtime/issues/13","repository_url":"https://api.github.com/repos/intel/compute-runtime","labels_url":"https://api.github.com/repos/intel/compute-runtime/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/intel/compute-runtime/issues/13/comments","events_url":"https://api.github.com/repos/intel/compute-runtime/issues/13/events","html_url":"https://github.com/intel/compute-runtime/issues/13","id":297981306,"number":13,"title":"Neo OpenCL driver supports already SPV_INTEL_subgroups?","user":{"login":"oscarbg","id":669305,"avatar_url":"https://avatars0.githubusercontent.com/u/669305?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarbg","html_url":"https://github.com/oscarbg","followers_url":"https://api.github.com/users/oscarbg/followers","following_url":"https://api.github.com/users/oscarbg/following{/other_user}","gists_url":"https://api.github.com/users/oscarbg/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarbg/subscriptions","organizations_url":"https://api.github.com/users/oscarbg/orgs","repos_url":"https://api.github.com/users/oscarbg/repos","events_url":"https://api.github.com/users/oscarbg/events{/privacy}","received_events_url":"https://api.github.com/users/oscarbg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jchodor","id":32307343,"avatar_url":"https://avatars0.githubusercontent.com/u/32307343?v=4","gravatar_id":"","url":"https://api.github.com/users/jchodor","html_url":"https://github.com/jchodor","followers_url":"https://api.github.com/users/jchodor/followers","following_url":"https://api.github.com/users/jchodor/following{/other_user}","gists_url":"https://api.github.com/users/jchodor/gists{/gist_id}","starred_url":"https://api.github.com/users/jchodor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchodor/subscriptions","organizations_url":"https://api.github.com/users/jchodor/orgs","repos_url":"https://api.github.com/users/jchodor/repos","events_url":"https://api.github.com/users/jchodor/events{/privacy}","received_events_url":"https://api.github.com/users/jchodor/received_events","type":"User","site_admin":false},"assignees":[{"login":"jchodor","id":32307343,"avatar_url":"https://avatars0.githubusercontent.com/u/32307343?v=4","gravatar_id":"","url":"https://api.github.com/users/jchodor","html_url":"https://github.com/jchodor","followers_url":"https://api.github.com/users/jchodor/followers","following_url":"https://api.github.com/users/jchodor/following{/other_user}","gists_url":"https://api.github.com/users/jchodor/gists{/gist_id}","starred_url":"https://api.github.com/users/jchodor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchodor/subscriptions","organizations_url":"https://api.github.com/users/jchodor/orgs","repos_url":"https://api.github.com/users/jchodor/repos","events_url":"https://api.github.com/users/jchodor/events{/privacy}","received_events_url":"https://api.github.com/users/jchodor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-02-17T05:34:52Z","updated_at":"2018-02-24T00:49:35Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm very interested in this extension as it seems to provide support for cl_intel_subgroups & cl_intel_subgroups_short extensions to SPIR-V world..\r\ndon't know if extension is official yet or not..\r\nit's strange because it can't be found on SPIR-V extension registry:\r\nhttps://www.khronos.org/registry/spir-v/\r\nbut appers on:\r\nhttps://www.khronos.org/registry/spir-v/specs/unified1/SPIRV.pdf\r\nor commits like:\r\n[Mesa-dev] [PATCH 03/10] spirv: Import the latest 1.0.12 header and JSON from Khronos\r\n\r\n just found by inspection that Khronos SPIRV-LLVM compiler already supports it:\r\nhttps://github.com/KhronosGroup/SPIRV-LLVM/commit/4496e8920e45ccffe08441321a0775740091f9eb\r\nit also there support for Clang \r\n\"CLANG support for cl_intel_subgroups and cl_intel_subgroups_short\"\r\nhttps://github.com/KhronosGroup/SPIR/commit/7ad2092dc40b37895cb159deb1bdfc5a3c4cf382\r\n\r\nI was lazy and still don't compiled these to projects jointly with neo opencl driver to see if SPIRV kernels using these cl_intel_subgroups_* capabilities run correctly on Neo..\r\nI thought I could avoid compiling Khronos SPIR and SPIRV-LLVM projects by using Intel OpenCL code builder from Intel OpenCL SDK that supports generating also SPIR-V code from kernels from a nice GUI..\r\nI tested with latest version avaiable (Intel® SDK for OpenCL™ Applications 2017 R2 version 7.0.0.2567) and it doesn't worked (of course generating OpenCL vendor specific binary for Intel HD graphics using kernel using this cl_intel_subgroups_* extension worked correctly..\r\n\r\nso guess it's will be in Intel OpenCL SDK 2018 whenever it comes out, right?\r\n\r\nof course when I say if Neo supports this SPV extension I also mean the OpenCL Neo driver that has started appearing included on recent Windows drivers for example on 23.20.16.4933..\r\n\r\nwait you to enlighten me on all this questions..\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/intel/compute-runtime/issues/comments/368180729","html_url":"https://github.com/intel/compute-runtime/issues/13#issuecomment-368180729","issue_url":"https://api.github.com/repos/intel/compute-runtime/issues/13","id":368180729,"user":{"login":"bashbaug","id":14812095,"avatar_url":"https://avatars3.githubusercontent.com/u/14812095?v=4","gravatar_id":"","url":"https://api.github.com/users/bashbaug","html_url":"https://github.com/bashbaug","followers_url":"https://api.github.com/users/bashbaug/followers","following_url":"https://api.github.com/users/bashbaug/following{/other_user}","gists_url":"https://api.github.com/users/bashbaug/gists{/gist_id}","starred_url":"https://api.github.com/users/bashbaug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bashbaug/subscriptions","organizations_url":"https://api.github.com/users/bashbaug/orgs","repos_url":"https://api.github.com/users/bashbaug/repos","events_url":"https://api.github.com/users/bashbaug/events{/privacy}","received_events_url":"https://api.github.com/users/bashbaug/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T00:49:35Z","updated_at":"2018-02-24T00:49:35Z","author_association":"NONE","body":"Continuing the SPIR-V consumption disucssion from https://github.com/KhronosGroup/SPIRV-LLVM/issues/228:\r\n\r\n> don't tested yet but it's that SPIR-V shaders usable on any public Intel OpenCL driver either on Windows or Linux platform..\r\n> also how is related to new Intel OpenCL Neo driver (https://github.com/intel/compute-runtime)..\r\n> it supports SPV intel subgroups already?\r\n\r\nWe do support SPIR-V consumption on shipping Windows and Linux drivers (including the driver in this repo), but as mentioned above we do not currently support our OpenCL extensions via SPIR-V.  We do intend to support some of our OpenCL extensions via SPIR-V in the future though, and you're seeing the first signs of this via the SPIR-V generator support for SPV_INTEL_subgroups.\r\n\r\n> I'm having trouble compiling the OpenCL file attached below (Opt_MatrixMultiplication.cl) to SPIR-V of this sample obtained from Intel site using the same Khronos OpenCL Clang compiler+SPIRV-LLVM I compiled from master that has \"SPV_INTEL_subgroups\":\r\n> GEMM_sample_Jun2017.zip\r\n> \r\n> it uses cl_intel_subgroups but I see in code also something like:\r\n> #ifdef cl_intel_simd_operations_placeholder\r\n> #define cl_intel_subgroups\r\n> #define sub_group_broadcast intel_simd_shuffle\r\n> #endif\r\n\r\nInteresting, this was a placeholder name for the feature that became cl_intel_subgroups when it was in development.  I suspect this section of code was added so these kernels could run on preproduction drivers that used the old interfaces.  It's dead code now though, and can safely be removed / ignored.\r\n\r\n> so is this OpenCL file compilable yet to SPIR-V..\r\n> I say because it seems the fastest GEMM code avaiable for Intel HD Graphics right now and also with some very optimized f16 matmal code..\r\n\r\nWe're very curious to hear more about your SPIR-V plans for subgroups, so feel free to reach out to us (in public, or in private via email) if you can tell us more about your use case.\r\n\r\nYou might also be interested in the [Intel clDNN library](https://github.com/intel/clDNN), which contains additional optimized fp16 kernels for machine learning, if you haven't seen it already."}}
{"actor":{"display_login":"bashbaug"}}