public MyReductionKernel <T> KernelReduction <T>(MyNode owner, int nGPU, ReductionMode mode, int bufferSize = MyParallelKernel <T> .BUFFER_SIZE, bool forceNewInstance = false) where T : struct { return(new MyReductionKernel <T>(owner, nGPU, mode, bufferSize)); }
public MyReductionKernel(MyNode owner, int nGPU, ReductionMode mode, int bufferSize = BUFFER_SIZE) : base(owner, nGPU, ParallelKernelDescriptor.GetDescriptor(typeof(ReductionMode), mode.ToString()), bufferSize) { ResetParameters(); }