1

Where is cudaMemset in Alea GPU? I want to zero a big array on GPU global memory but I cannot find such function on Alea GPU.

4

1 回答 1

0

将内核中的数组“归零”的最简单方法是:

Gpu.Default.Launch(() =>
{
    DeviceRuntime.Zero(YourDeviceMemory, length)
}, new LaunchParam(1, 1));
于 2017-09-12T09:53:41.987 回答