Deprecating hipMallocHost to hipHostAlloc

[ROCm/hip commit: cbdc8c277c]
此提交包含在:
Aditya Atluri
2016-03-15 06:30:16 -05:00
父節點 0abf5db89e
當前提交 4c54a8d9d5
共有 7 個檔案被更改,包括 46 行新增 和 46 行删除
+2 -2
查看文件
@@ -85,7 +85,7 @@ void initArrays(T **Ad, T **Ah,
HIPCHECK( hipMalloc(Ad, NBytes));
}
if(usePinnedHost){
HIPCHECK( hipMallocHost(Ah, NBytes));
HIPCHECK( hipHostAlloc((void**)Ah, NBytes, hipHostAllocDefault));
}
else{
*Ah = new T[N];
@@ -102,7 +102,7 @@ void initArrays(T **Ad, size_t N,
HIPCHECK( hipMalloc(Ad, NBytes));
}else{
if(usePinnedHost){
HIPCHECK(hipMallocHost(Ad, NBytes));
HIPCHECK(hipHostAlloc((void**)Ad, NBytes, hipHostAllocDefault));
}else{
*Ad = new T[N];
HIPASSERT(*Ad != NULL);