How to convert double array to float array

Hello!

   Is there a function on the DEVICE that convert double array to float array? from CUDA or CUBLAS?

   Or should I transfer the array out to HOST then use std::transform, and then transfer into DEVICE again?

Thanks!

It’s a fairly trivial kernel to write yourself…