# cudaMallocPitch()

**URL:** <https://forums.developer.nvidia.com/t/cudamallocpitch/12862>\
**Category:** CUDA Programming and Performance\
**Created:** [October 20, 2009, 10:46pm UTC](https://forums.developer.nvidia.com/t/cudamallocpitch/12862 "2009-10-20T22:46:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpu\_user](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gpu\_user](https://forums.developer.nvidia.com/u/gpu_user)\
**Post date:** [October 20, 2009, 10:46pm UTC](https://forums.developer.nvidia.com/t/cudamallocpitch/12862/1 "2009-10-20T22:46:15Z")

</div>

In cudaMallocPitch( (void\*\*) &d\_src , &pitch , width \* sizeof(float) , height);, is height the number of rows and width the number of columns, or the other way around? Thanks.
