{"action":"created","issue":{"url":"https://api.github.com/repos/ProGTX/sycl-gtx/issues/12","labels_url":"https://api.github.com/repos/ProGTX/sycl-gtx/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ProGTX/sycl-gtx/issues/12/comments","events_url":"https://api.github.com/repos/ProGTX/sycl-gtx/issues/12/events","html_url":"https://github.com/ProGTX/sycl-gtx/issues/12","id":108923033,"number":12,"title":"Separating building of OpenCL code into compile and link invalidates order","user":{"login":"ProGTX","id":4526787,"avatar_url":"https://avatars.githubusercontent.com/u/4526787?v=3","gravatar_id":"","url":"https://api.github.com/users/ProGTX","html_url":"https://github.com/ProGTX","followers_url":"https://api.github.com/users/ProGTX/followers","following_url":"https://api.github.com/users/ProGTX/following{/other_user}","gists_url":"https://api.github.com/users/ProGTX/gists{/gist_id}","starred_url":"https://api.github.com/users/ProGTX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProGTX/subscriptions","organizations_url":"https://api.github.com/users/ProGTX/orgs","repos_url":"https://api.github.com/users/ProGTX/repos","events_url":"https://api.github.com/users/ProGTX/events{/privacy}","received_events_url":"https://api.github.com/users/ProGTX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ProGTX/sycl-gtx/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T17:57:15Z","updated_at":"2015-09-29T18:00:59Z","closed_at":null,"body":"Separating the build command into compile and link in 063cc7ef0df59b61d68141b4aed63cdf3ddaa58c caused the operation order to be invalid - buffers were only initialized after the kernel arguments have been set. This lead to segfaults."},"comment":{"url":"https://api.github.com/repos/ProGTX/sycl-gtx/issues/comments/144136861","html_url":"https://github.com/ProGTX/sycl-gtx/issues/12#issuecomment-144136861","issue_url":"https://api.github.com/repos/ProGTX/sycl-gtx/issues/12","id":144136861,"user":{"login":"ProGTX","id":4526787,"avatar_url":"https://avatars.githubusercontent.com/u/4526787?v=3","gravatar_id":"","url":"https://api.github.com/users/ProGTX","html_url":"https://github.com/ProGTX","followers_url":"https://api.github.com/users/ProGTX/followers","following_url":"https://api.github.com/users/ProGTX/following{/other_user}","gists_url":"https://api.github.com/users/ProGTX/gists{/gist_id}","starred_url":"https://api.github.com/users/ProGTX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProGTX/subscriptions","organizations_url":"https://api.github.com/users/ProGTX/orgs","repos_url":"https://api.github.com/users/ProGTX/repos","events_url":"https://api.github.com/users/ProGTX/events{/privacy}","received_events_url":"https://api.github.com/users/ProGTX/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T18:00:59Z","updated_at":"2015-09-29T18:00:59Z","body":"The problem was actually much deeper than how it looked at first. This is because of cyclic dependencies:\r\n - Per specification, a program contains one or more kernels, while a kernel returns its parent program.\r\n - In the implementation, the kernel source class requires the kernel to be created first, but the kernel also needs the source to be created."}}