Revert "Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions."

This reverts commit 4792475
这个提交包含在:
Alex Voicu 于 2017-11-29 21:49:10 +00:00 提交
1 父节点 92e80f0943
当前提交 4966518846
63 个文件已更改
+171 -173

没有与搜索条件相匹配的文件

@@ -35,7 +35,7 @@ THE SOFTWARE.
template<typename T>
__global__ void Inc(hipLaunchParm lp, T *Array){
int tx = hipThreadIdx_x + hipBlockIdx_x * hipBlockDim_x;
int tx = threadIdx.x + blockIdx.x * blockDim.x;
Array[tx] = Array[tx] + T(1);
}