Will pitch be the same for allocations of absolutely the same 3d data allocated with cudaMalloc3D?
I have a couple of equally sized arrays with the same type of data stored in and if I am sure pitch values are strictly the same for them I can greatly reduce amount of registers in my kernel using only one pitch for them.
no comments?
no comments?
I guess nobody is willing to give you any hard guarantees. In that case, you could make two kernels: One that’s optimized for the case that all three pitch values are equal, and a general fallback one.
Have you checked that you usually get the same pitch values? I would have thought that is not even the case, but I never checked.
I guess nobody is willing to give you any hard guarantees. In that case, you could make two kernels: One that’s optimized for the case that all three pitch values are equal, and a general fallback one.
Have you checked that you usually get the same pitch values? I would have thought that is not even the case, but I never checked.
Yes, I’m pretty sure the pitch will always be the same (at least within the same context / hardware).
Yes, I’m pretty sure the pitch will always be the same (at least within the same context / hardware).