This implements the trivial change needed to move back from the hip{Something}_{x, y, z} macros to the natural CUDA syntax of Something.{x, y, z}. This is contained in lines 384-404 in hip_runtime.h. All of the other changes have to do with changing unit tests to use this syntax. The macros are retained for backwards compatibility.

此提交包含在:
Alex Voicu
2017-11-19 01:54:12 +00:00
父節點 85975e719d
當前提交 cffd0e14eb
共有 60 個檔案被更改,包括 270 行新增 和 248 行删除
+1 -1
查看文件
@@ -26,7 +26,7 @@ THE SOFTWARE.
static size_t size[NUM_SIZE];
__global__ void Add(hipLaunchParm lp, int *Ad){
int tx = hipThreadIdx_x;
int tx = threadIdx.x;
Ad[tx] = Ad[tx] + tx;
}