Does anyone know how to copy data from host to cuArray using .NET? Thank You in advance.

it is in samples is ok, but is crashing on some calls, just for you to know
use try {} catch {}, it likes to throw exceptions

cuda.CopyHostToDevice does only copies from host to linear memory. i need to copy to cudaArray.