Add USE_PROMOTE_FREE_HCC for smooth transition to new HCC caps.

ADDRESS_SPACE_1 defines
This commit is contained in:
Ben Sander
2017-03-17 11:04:39 -05:00
parent c9f64bbd2d
commit f4256cb57c
4 changed files with 25 additions and 11 deletions
@@ -31,9 +31,10 @@ THE SOFTWARE.
#define NUM 1024
#define SIZE 1024*4
// TODO - collapse:
#ifdef __HIP_PLATFORM_HCC__
__attribute__((address_space(1))) int globalIn[NUM];
__attribute__((address_space(1))) int globalOut[NUM];
__device__ ADDRESS_SPACE_1 int globalIn[NUM];
__device__ ADDRESS_SPACE_1 int globalOut[NUM];
#endif
#ifdef __HIP_PLATFORM_NVCC__