From b0cf03114edd8709987cd9712d77491fbf296018 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Thu, 16 Jun 2016 09:38:34 -0500 Subject: [PATCH] Add NVCC implementation for hipPeeakAtLastError --- include/nvcc_detail/hip_runtime_api.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/nvcc_detail/hip_runtime_api.h b/include/nvcc_detail/hip_runtime_api.h index 404ad38484..c3d8f2950f 100644 --- a/include/nvcc_detail/hip_runtime_api.h +++ b/include/nvcc_detail/hip_runtime_api.h @@ -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)); }