toHost

copy device memory to host (CAUTION: no reallocation here)

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

Meta