summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-09-11 21:06:37 -0400
committerMengchi Zhang <[email protected]>2019-09-11 21:06:37 -0400
commit4671c7b3b3f1792f6f4b6c98e2bcffe7d072bac0 (patch)
treec80f01884a48916a8f8e98c5379a5c97628ef32b
parent90e85664154a7b8eda8ddbf0429eb962c9be78e1 (diff)
Fix init bug in cudaMallocArray
Signed-off-by: Mengchi Zhang <[email protected]>
-rw-r--r--libcuda/cuda_runtime_api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 175cbc5..8930d61 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1892,7 +1892,7 @@ __host__ cudaError_t CUDARTAPI cudaMallocPitch(void **devPtr, size_t *pitch, siz
__host__ cudaError_t CUDARTAPI cudaMallocArray(struct cudaArray **array, const struct cudaChannelFormatDesc *desc, size_t width, size_t height __dv(1))
{
- return cudaMallocArrayInternal(array, desc, width, height __dv(1));
+ return cudaMallocArrayInternal(array, desc, width, height);
}
__host__ cudaError_t CUDARTAPI cudaFree(void *devPtr)