コード例 #1
0
 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));
 }
コード例 #2
0
 public MyReductionKernel(MyNode owner, int nGPU, ReductionMode mode, int bufferSize = BUFFER_SIZE)
     : base(owner, nGPU, ParallelKernelDescriptor.GetDescriptor(typeof(ReductionMode), mode.ToString()), bufferSize)
 {
     ResetParameters();
 }