toHost

copy device memory to host (maybe reallocate in host)

  1. ref toHost(M m, T[] host)
    version(grain_cuda)
    ref
    toHost
    (
    M
    T
    )
    (
    ref M m
    ,
    scope ref T[] host
    )
  2. auto toHost(M m, T* host)
  3. auto toHost(M m)

Meta