Revert "Changes to HIP to cope with Promote-free HCC"

This reverts commit efb9b9e86c.

Change-Id: I20a9bab3883ad09913b320210344d37599cb8fcd
This commit is contained in:
Wen-Heng (Jack) Chung
2017-03-14 22:58:41 +08:00
parent 0f861fbba5
commit 77e21dc09f
8 changed files with 20 additions and 13 deletions
+4 -3
View File
@@ -264,7 +264,7 @@ __device__ int __hip_move_dpp(int src, int dpp_ctrl, int row_mask, int bank_mask
__host__ __device__ int min(int arg1, int arg2);
__host__ __device__ int max(int arg1, int arg2);
__device__ void* __get_dynamicgroupbaseptr();
__device__ __attribute__((address_space(3))) void* __get_dynamicgroupbaseptr();
/**
@@ -422,9 +422,10 @@ do {\
// Macro to replace extern __shared__ declarations
// to local variable definitions
#define HIP_DYNAMIC_SHARED(type, var) \
type* var = (type*)__get_dynamicgroupbaseptr(); \
__attribute__((address_space(3))) type* var = \
(__attribute__((address_space(3))) type*)__get_dynamicgroupbaseptr(); \
#define HIP_DYNAMIC_SHARED_ATTRIBUTE
#define HIP_DYNAMIC_SHARED_ATTRIBUTE __attribute__((address_space(3)))
#endif // __HCC__
+1 -1
View File
@@ -47,7 +47,7 @@ THE SOFTWARE.
*/
// _restrict is supported by the compiler
#define __shared__ tile_static
#define __constant__ __attribute__((hc))
#define __constant__ __attribute__((address_space(1)))
#else
// Non-HCC compiler