@@ -178,11 +178,11 @@ UCM_CUDA_ALLOC_FUNC(cuMemAlloc_v2, CUresult, CUDA_SUCCESS, arg0, CUdeviceptr, *,
178
178
UCM_CUDA_ALLOC_FUNC (cuMemAllocManaged , CUresult , CUDA_SUCCESS , arg0 ,
179
179
CUdeviceptr , * , "size=%zu flags=0x%x" , size_t , unsigned )
180
180
UCM_CUDA_ALLOC_FUNC (cuMemAllocPitch , CUresult , CUDA_SUCCESS ,
181
- ((size_t )arg1 ) * (arg2 ), CUdeviceptr , * ,
181
+ ((size_t )( * arg0 ) ) * (arg2 ), CUdeviceptr , * ,
182
182
"pitch=%p width=%zu height=%zu elem=%u" , size_t * , size_t ,
183
183
size_t , unsigned )
184
184
UCM_CUDA_ALLOC_FUNC (cuMemAllocPitch_v2 , CUresult , CUDA_SUCCESS ,
185
- ((size_t )arg1 ) * (arg2 ), CUdeviceptr , * ,
185
+ ((size_t )( * arg0 ) ) * (arg2 ), CUdeviceptr , * ,
186
186
"pitch=%p width=%zu height=%zu elem=%u" , size_t * , size_t ,
187
187
size_t , unsigned )
188
188
UCM_CUDA_ALLOC_FUNC (cuMemMap , CUresult , CUDA_SUCCESS , arg0 , CUdeviceptr , ,
@@ -274,7 +274,7 @@ UCM_CUDA_ALLOC_FUNC(cudaMalloc, cudaError_t, cudaSuccess, arg0, void*, *,
274
274
UCM_CUDA_ALLOC_FUNC (cudaMallocManaged , cudaError_t , cudaSuccess , arg0 , void * , * ,
275
275
"size=%zu flags=0x%x" , size_t , unsigned )
276
276
UCM_CUDA_ALLOC_FUNC (cudaMallocPitch , cudaError_t , cudaSuccess ,
277
- ((size_t )arg1 ) * (arg2 ), void * , * ,
277
+ ((size_t )( * arg0 ) ) * (arg2 ), void * , * ,
278
278
"pitch=%p width=%zu height=%zu" , size_t * , size_t , size_t )
279
279
#if CUDART_VERSION >= 11020
280
280
UCM_CUDA_ALLOC_FUNC (cudaMallocAsync , cudaError_t , cudaSuccess , arg0 , void * , * ,
0 commit comments