Is there an efficient way to take a subset of a C # array and pass it to another piece of code (without changing the original array)? I am using CUDA.net, which has a function that copies an array to the GPU. For example, I would like to pass the function of the 10th array and thus copy every tenth array to the GPU separately (for pipelining purposes).
Copying an array in this way should be as efficient as copying it at a time. This can be done using unsafe code and simply refer to the desired memory location, but not that I'm not sure. The CopyTo function copies the entire array to another array, so this does not seem to be useful.
source
share