Merge branch 'amd-master' into amd-develop

Этот коммит содержится в:
Maneesh Gupta
2017-03-14 13:44:41 +05:30
родитель c8969811db efb9b9e86c
Коммит 675dd1cedf
8 изменённых файлов: 13 добавлений и 20 удалений
+3 -4
Просмотреть файл
@@ -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__ __attribute__((address_space(3))) void* __get_dynamicgroupbaseptr();
__device__ void* __get_dynamicgroupbaseptr();
/**
@@ -422,10 +422,9 @@ do {\
// Macro to replace extern __shared__ declarations
// to local variable definitions
#define HIP_DYNAMIC_SHARED(type, var) \
__attribute__((address_space(3))) type* var = \
(__attribute__((address_space(3))) type*)__get_dynamicgroupbaseptr(); \
type* var = (type*)__get_dynamicgroupbaseptr(); \
#define HIP_DYNAMIC_SHARED_ATTRIBUTE __attribute__((address_space(3)))
#define HIP_DYNAMIC_SHARED_ATTRIBUTE
#endif // __HCC__
+1 -1
Просмотреть файл
@@ -47,7 +47,7 @@ THE SOFTWARE.
*/
// _restrict is supported by the compiler
#define __shared__ tile_static
#define __constant__ __attribute__((address_space(1)))
#define __constant__ __attribute__((hc))
#else
// Non-HCC compiler