Use a much simpler guard for version 1.6, which allows for direct CUDA indexing to be used.

[ROCm/clr commit: 92e80f0943]
이 커밋은 다음에 포함됨:
Alex Voicu가 2017-11-29 21:47:04 +00:00를 커밋했습니다
1 부모 094dc0e8c5
커밋 e0a41791c8
1 파일이 변경됨
+6 -2
+6 -2
파일 보기
@@ -44,8 +44,12 @@ THE SOFTWARE.
#if GENERIC_GRID_LAUNCH == 0
#define __global__ __attribute__((hc_grid_launch)) __attribute__((used))
#else
#define __global__ \
__attribute__((annotate("__HIP_global_function__"), cpu, hc, used))
#if __hcc_workweek__ >=17481
#define __global__ \
__attribute__((annotate("__HIP_global_function__"), cpu, hc, used))
#else
#define __global__ __attribute__((hc, used))
#endif
#endif //GENERIC_GRID_LAUNCH
#define __noinline__ __attribute__((noinline))