Add NVCC implementation for hipPeeakAtLastError

此提交包含在:
Ben Sander committed 2016-06-16 09:38:34 -05:00
1 父節點 29552a9ae7
當前提交 b0cf03114e
1 file changed
+4
+4
查看文件
@@ -132,6 +132,10 @@ inline static hipError_t hipGetLastError() {
return hipCUDAErrorTohipError(cudaGetLastError());
}
inline static hipError_t hipPeekAtLastError() {
return hipCUDAErrorTohipError(cudaPeekAtLastError());
}
inline static hipError_t hipMalloc(void** ptr, size_t size) {
return hipCUDAErrorTohipError(cudaMalloc(ptr, size));
}