title: What is the most efficient way to transpose a matrix in CUDA?
body: <p>I have a <code>M*N</code> host memory matrix, and upon copying into a device memory, I need it to be transposed into a <code>N*M</code> matrix. Is there any cuda (cuBLAS...) API doing that? I am using CUDA 4. Thanks!</p>