Backends/SiaNet.Backend.TensorSharp/Cuda/KernelOps/ReductionOp.cs
/// <summary>
/// Gets the noncontig reduce grid.
/// </summary>
/// <param name="deviceProps">The device props.</param>
/// <param name="elements">The elements.</param>
/// <returns>dim3.</returns>
Gets the noncontig reduce grid.
Gets the noncontig reduce grid .
private static dim3 GetNoncontigReduceGrid(CudaDeviceProperties deviceProps, long elements)
        {
            return GridFromTiles(ApplyUtils.CeilDiv(elements, (long)GetNonContigReduceBlockSize(deviceProps)));
        }
private static dim3 GetNoncontigReduceGrid ( CudaDeviceProperties deviceProps , long elements ) { return GridFromTiles ( ApplyUtils . CeilDiv ( elements , ( long ) GetNonContigReduceBlockSize ( deviceProps ) ) ) ; }
Gets the noncontig reduce grid.
Gets the noncontig reduce grid .
// One output point per thread
None
deviceProps
CudaDeviceProperties
The device props.
The device props .
elements
long
None