aleagpu

Where is cudaMemset in Alea GPU?


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.


Solution

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

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