Where is cudaMemset in Alea GPU?

147 views Asked by At

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.

1

There are 1 answers

0
redb On BEST ANSWER

The easiest way to "zero" an array inside a kernel is this:

Gpu.Default.Launch(() =>
{
    DeviceRuntime.Zero(YourDeviceMemory, length)
}, new LaunchParam(1, 1));