{"action":"created","issue":{"url":"https://api.github.com/repos/amd/triSYCL/issues/11","labels_url":"https://api.github.com/repos/amd/triSYCL/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/amd/triSYCL/issues/11/comments","events_url":"https://api.github.com/repos/amd/triSYCL/issues/11/events","html_url":"https://github.com/amd/triSYCL/issues/11","id":125974745,"number":11,"title":"Convert accessor to pointer","user":{"login":"szellmann","id":1730127,"avatar_url":"https://avatars.githubusercontent.com/u/1730127?v=3","gravatar_id":"","url":"https://api.github.com/users/szellmann","html_url":"https://github.com/szellmann","followers_url":"https://api.github.com/users/szellmann/followers","following_url":"https://api.github.com/users/szellmann/following{/other_user}","gists_url":"https://api.github.com/users/szellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/szellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szellmann/subscriptions","organizations_url":"https://api.github.com/users/szellmann/orgs","repos_url":"https://api.github.com/users/szellmann/repos","events_url":"https://api.github.com/users/szellmann/events{/privacy}","received_events_url":"https://api.github.com/users/szellmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-11T15:56:04Z","updated_at":"2016-01-12T08:27:38Z","closed_at":null,"body":"Hi, I wonder how one may convert an accessor to a pointer. The [SYCL 1.2 specification](https://www.khronos.org/registry/sycl/specs/sycl-1.2.pdf) states under 2.7 Memory objects (p. 27), that accessors ...\r\n\r\n> can be converted within a kernel into C++ pointer types, or the cl::sycl::global_ptr, cl::sycl::constant_ptr classes.\r\n\r\nA quick grep for _global_ptr_ however reveals that this type is not present in the source code, and buffer/accessor have no ```operator T*``` for implicit conversion, or smth. similar. Is there a way to convert accessors to raw pointers with triSYCL?\r\n\r\nFor my purposes it would simplify things if one could obtain a pointer to buffer data on the host, similar to device pointers with CUDA. But that is probably not intended by the standard, right?"},"comment":{"url":"https://api.github.com/repos/amd/triSYCL/issues/comments/170836078","html_url":"https://github.com/amd/triSYCL/issues/11#issuecomment-170836078","issue_url":"https://api.github.com/repos/amd/triSYCL/issues/11","id":170836078,"user":{"login":"szellmann","id":1730127,"avatar_url":"https://avatars.githubusercontent.com/u/1730127?v=3","gravatar_id":"","url":"https://api.github.com/users/szellmann","html_url":"https://github.com/szellmann","followers_url":"https://api.github.com/users/szellmann/followers","following_url":"https://api.github.com/users/szellmann/following{/other_user}","gists_url":"https://api.github.com/users/szellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/szellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szellmann/subscriptions","organizations_url":"https://api.github.com/users/szellmann/orgs","repos_url":"https://api.github.com/users/szellmann/repos","events_url":"https://api.github.com/users/szellmann/events{/privacy}","received_events_url":"https://api.github.com/users/szellmann/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T08:27:38Z","updated_at":"2016-01-12T08:27:38Z","body":"Ah, thanks for the info.\r\n\r\nDo you think that accessing the storage array through the begin() iterator is portable? Or is it something that might work by accident with certain implementations? I have to admit that I haven't worked all the way through the specification yet, but I'd rather believe they would have specified access to the device DDR memory in a more explicit way.\r\n\r\nExcited about the upcoming SYCL 2.0 support, and even more excited about a first device implementation that I believe you mentioned elsewhere :)"}}