{"action":"created","issue":{"url":"https://api.github.com/repos/hughperkins/cuda-on-cl/issues/2","repository_url":"https://api.github.com/repos/hughperkins/cuda-on-cl","labels_url":"https://api.github.com/repos/hughperkins/cuda-on-cl/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hughperkins/cuda-on-cl/issues/2/comments","events_url":"https://api.github.com/repos/hughperkins/cuda-on-cl/issues/2/events","html_url":"https://github.com/hughperkins/cuda-on-cl/issues/2","id":184419322,"number":2,"title":"Translate CUDA directly to SPIR omitting OpenCL code","user":{"login":"inferrna","id":4245277,"avatar_url":"https://avatars.githubusercontent.com/u/4245277?v=3","gravatar_id":"","url":"https://api.github.com/users/inferrna","html_url":"https://github.com/inferrna","followers_url":"https://api.github.com/users/inferrna/followers","following_url":"https://api.github.com/users/inferrna/following{/other_user}","gists_url":"https://api.github.com/users/inferrna/gists{/gist_id}","starred_url":"https://api.github.com/users/inferrna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inferrna/subscriptions","organizations_url":"https://api.github.com/users/inferrna/orgs","repos_url":"https://api.github.com/users/inferrna/repos","events_url":"https://api.github.com/users/inferrna/events{/privacy}","received_events_url":"https://api.github.com/users/inferrna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-10-21T07:42:00Z","updated_at":"2016-10-25T18:31:35Z","closed_at":"2016-10-21T08:02:58Z","body":"1. There is a tool to produce LLVM IR from CUDA source https://developer.nvidia.com/cuda-llvm-compiler\r\n2. And a tool to convert LLVM IR -> SPIR https://github.com/KhronosGroup/SPIRV-LLVM\r\n\r\nWhy not to use this combo? (I would try it by myself, but I think you may did it already.)"},"comment":{"url":"https://api.github.com/repos/hughperkins/cuda-on-cl/issues/comments/256129374","html_url":"https://github.com/hughperkins/cuda-on-cl/issues/2#issuecomment-256129374","issue_url":"https://api.github.com/repos/hughperkins/cuda-on-cl/issues/2","id":256129374,"user":{"login":"hughperkins","id":123560,"avatar_url":"https://avatars.githubusercontent.com/u/123560?v=3","gravatar_id":"","url":"https://api.github.com/users/hughperkins","html_url":"https://github.com/hughperkins","followers_url":"https://api.github.com/users/hughperkins/followers","following_url":"https://api.github.com/users/hughperkins/following{/other_user}","gists_url":"https://api.github.com/users/hughperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/hughperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughperkins/subscriptions","organizations_url":"https://api.github.com/users/hughperkins/orgs","repos_url":"https://api.github.com/users/hughperkins/repos","events_url":"https://api.github.com/users/hughperkins/events{/privacy}","received_events_url":"https://api.github.com/users/hughperkins/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:31:35Z","updated_at":"2016-10-25T18:31:35Z","body":"There's a diagram of how cuda-on-cl works. The steps are:\n- convert cu file to ll files. These contain ir\n- convert the device side ll file into opencl\n- (some other steps for hostside)\n\nThe device side ir is available for inspection. You can look for the file called 'something-device.ll'. there is no information on function parameter address spaces. I assume that the cuda driver handles this at runtime.\n\n\n\nOn 21 October 2016 11:31:04 BST, inferrna <notifications@github.com> wrote:\n>> Well, address spaces are certainly a total pain, in cuda -> opencl.\n>Imagine the following function:\n>\n>Yes, but how the CUDA compiler solves it? CUDA also support many types\n>of memory that seems to be hidden in this simple declaration\n>```__device__ void addfive(float *data)```\n>it very possible that somewhere on IR level of CUDA compiler we can see\n>the solution (or on binary level, that also possible)\n>\n>-- \n>You are receiving this because you modified the open/close state.\n>Reply to this email directly or view it on GitHub:\n>https://github.com/hughperkins/cuda-on-cl/issues/2#issuecomment-255348425\n\n-- \nSent from my Android device with K-9 Mail. Please excuse my brevity."}}
{"actor":{"display_login":"hughperkins"}}