Sorry If I was unclear about the question. The small sample is straightforward. It initializes the matrix in GPU. But my code (the first code section) crashes since it initializes in CPU and then needs to be transferred into the GPU.
Is there a better way to read a file with a large data matrix, load it into GPU and compute the SVD in GPU?
I have a Tesla K80 GPU.