{"action":"created","issue":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/85","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/85/comments","events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/85/events","html_url":"https://github.com/ComputationalRadiationPhysics/alpaka/pull/85","id":113901029,"number":85,"title":"Fix shared memory allocation with implicit id counter","user":{"login":"BenjaminW3","id":8956583,"avatar_url":"https://avatars.githubusercontent.com/u/8956583?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminW3","html_url":"https://github.com/BenjaminW3","followers_url":"https://api.github.com/users/BenjaminW3/followers","following_url":"https://api.github.com/users/BenjaminW3/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminW3/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminW3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminW3/subscriptions","organizations_url":"https://api.github.com/users/BenjaminW3/orgs","repos_url":"https://api.github.com/users/BenjaminW3/repos","events_url":"https://api.github.com/users/BenjaminW3/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminW3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/labels/WIP","name":"WIP","color":"EEAAAA"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-28T19:13:17Z","updated_at":"2015-11-02T08:21:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/pulls/85","html_url":"https://github.com/ComputationalRadiationPhysics/alpaka/pull/85","diff_url":"https://github.com/ComputationalRadiationPhysics/alpaka/pull/85.diff","patch_url":"https://github.com/ComputationalRadiationPhysics/alpaka/pull/85.patch"},"body":"This branch implements a compile time counter for the shared memory allocation that is compiling on all platforms.\r\nIt is based on the code from [Filip Roséen](http://b.atch.se/posts/constexpr-counter/).\r\nAt least in C++11 and C++14 this code is valid. The C++ Standards Committee is currently debating on wheter this should be legal or not in C++17. See [here](https://groups.google.com/a/isocpp.org/forum/#!msg/std-discussion/M6aJMH_ewoM/-cV4Rq0ou5QJ).\r\n\r\n- [ ] [Suppress](https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html) the high number of warnings. (-Wundefined-internal / -Wnon-template-friend)\r\n- [ ] Increase the maximum counter value from 64 to something reasonable. However, this could exceed the maximum template instantiation depth.\r\n- [ ] Add the solution to the [Stackoverflow thread](http://stackoverflow.com/questions/33345498/cuda-shared-memory-wrapped-in-class-points-to-same-memory)."},"comment":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/comments/152949081","html_url":"https://github.com/ComputationalRadiationPhysics/alpaka/pull/85#issuecomment-152949081","issue_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/85","id":152949081,"user":{"login":"psychocoderHPC","id":4037125,"avatar_url":"https://avatars.githubusercontent.com/u/4037125?v=3","gravatar_id":"","url":"https://api.github.com/users/psychocoderHPC","html_url":"https://github.com/psychocoderHPC","followers_url":"https://api.github.com/users/psychocoderHPC/followers","following_url":"https://api.github.com/users/psychocoderHPC/following{/other_user}","gists_url":"https://api.github.com/users/psychocoderHPC/gists{/gist_id}","starred_url":"https://api.github.com/users/psychocoderHPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychocoderHPC/subscriptions","organizations_url":"https://api.github.com/users/psychocoderHPC/orgs","repos_url":"https://api.github.com/users/psychocoderHPC/repos","events_url":"https://api.github.com/users/psychocoderHPC/events{/privacy}","received_events_url":"https://api.github.com/users/psychocoderHPC/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T08:21:14Z","updated_at":"2015-11-02T08:21:14Z","body":"I tested you current branch with `cuda7.0` and two shared memory variables. Both are equal in the kernel which means the current implementation is not working."}}