How to convert an array to a CuArray efficiently

Hi bcmichael

Thank you for the quick response. typeof(imGray) yields

imgGray = Gray.(load("data/TEMSA630kx.tif")
typeof(imgGray) -> Matrix{Gray{Normed{UInt8,8}}}

So in the space before you answered I converted the array to Float32. After I did this I got much better performance using

Float32.(imgGray)

Then copying to the GPU with the constructor

CuArray()

Perhaps there is even a better way?
Now I am getting into using the CUFFT lib. I am not a stranger to FFTW but I have not used the CUDA libs so I am sure I’m in for a pretty steep learning curve.