Add __device__ to needful functions for promote-free.

This commit is contained in:
Ben Sander
2017-03-17 11:19:48 -05:00
parent f4256cb57c
commit 92fd4c8f10
5 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ do {\
// to local variable definitions
#define HIP_DYNAMIC_SHARED(type, var) \
ADDRESS_SPACE_3 type* var = \
ADDRESS_SPACE_3 type*)__get_dynamicgroupbaseptr(); \
(ADDRESS_SPACE_3 type*)__get_dynamicgroupbaseptr(); \
#define HIP_DYNAMIC_SHARED_ATTRIBUTE ADDRESS_SPACE_3