Predicting the pitch returned by cudaMallocPitch

I agree, one should not write a routine to predict what cudaMallocPitch will use as a pitch in a given circumstance. That said, the need to plan has not gone away. Currently I perform test allocations which I free, for no other purpose to than to work out the pitch for complex layouts. I would far rather there be a cudaCalculateMallocPitch which does the same calculation as cudaMallocPitch, but no