{"action":"created","issue":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/80","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/80/comments","events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/80/events","html_url":"https://github.com/ComputationalRadiationPhysics/alpaka/issues/80","id":113353931,"number":80,"title":"remove `alpaka::block::shared::allocArr`","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},"labels":[{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/milestones/1","html_url":"https://github.com/ComputationalRadiationPhysics/alpaka/milestones/version%200.1.0","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/milestones/1/labels","id":1421350,"number":1,"title":"version 0.1.0","description":"first stable release","creator":{"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},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2015-11-20T08:21:50Z","updated_at":"2015-11-26T10:13:16Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-10-26T13:24:14Z","updated_at":"2015-11-28T08:18:20Z","closed_at":null,"body":"Currently `ALPAKA` supports two ways to allocate static sized shared memory in a kernel `allocArr` and `allocVar` \r\nIMO we can remove `allocArr` because the same memory allocation can described with `alpaka::block::shared::allocVar<std::array<int,10>>`.\r\nThe problem is that `std::array` is not supported by cuda 7.0. If we ship a light implementation for static sized array with alpaka we can remove the trait for `allocArr`.\r\n\r\na implementation for an array can be:\r\n```C++\r\ntemplate<typename T_Type, size_t T_size>\r\nstruct Array\r\n{\r\n    T_Type m_data[T_size];\r\n\r\n    template<typename T_Idx>\r\n    ALPAKA_FN_HOST_ACC const T_Type& operator[](const T_Idx idx ) const\r\n    {\r\n        return m_data[idx];\r\n    }\r\n\r\n    template<typename T_Idx>\r\n    ALPAKA_FN_HOST_ACC T_Type& operator[](const T_Idx idx )\r\n    {\r\n        return m_data[idx];\r\n    }\r\n};\r\n```\r\n\r\nbtw with an array we can also define easily 2D arrays:\r\n```C++\r\nalpaka::block::shared::allocVar<std::array<std::array<int,32>,10>>\r\n```"},"comment":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/comments/160264163","html_url":"https://github.com/ComputationalRadiationPhysics/alpaka/issues/80#issuecomment-160264163","issue_url":"https://api.github.com/repos/ComputationalRadiationPhysics/alpaka/issues/80","id":160264163,"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},"created_at":"2015-11-28T08:18:20Z","updated_at":"2015-11-28T08:18:20Z","body":"Could someone check if `boost::array` is supported by CUDA instead?"}}