From 661561eeadcd493cc8dddd3fd511cf75bee76007 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 21 May 2018 11:33:09 +0530 Subject: [PATCH] Add hipMalloc3D to nvcc detail Change-Id: I8a5654066ed1504e3b05eddbbdebf05fd52aa149 --- include/hip/nvcc_detail/hip_runtime_api.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hip/nvcc_detail/hip_runtime_api.h b/include/hip/nvcc_detail/hip_runtime_api.h index 92393ab2e0..bd3ffc1cc1 100644 --- a/include/hip/nvcc_detail/hip_runtime_api.h +++ b/include/hip/nvcc_detail/hip_runtime_api.h @@ -382,6 +382,10 @@ inline static hipError_t hipMallocPitch(void** ptr, size_t* pitch, size_t width, return hipCUDAErrorTohipError(cudaMallocPitch(ptr, pitch, width, height)); } +inline static hipError_t hipMalloc3D(hipPitchedPtr* pitchedDevPtr, hipExtent extent) { + return hipCUDAErrorTohipError(cudaMalloc3D(pitchedDevPtr, extent)); +} + inline static hipError_t hipFree(void* ptr) { return hipCUDAErrorTohipError(cudaFree(ptr)); } inline static hipError_t hipMallocHost(void** ptr, size_t size)