Backends/SiaNet.Backend.TensorSharp/Cuda/DeviceCode/IndexSelectKernels.cs
/// <summary>
/// Makes the name of the kernel.
/// </summary>
/// <param name="isSmall">if set to <c>true</c> [is small].</param>
/// <param name="is32">if set to <c>true</c> [is32].</param>
/// <param name="dstDims">The DST dims.</param>
/// <param name="srcDims">The source dims.</param>
/// <param name="idxDims">The index dims.</param>
/// <returns>System.String.</returns>
Makes the name of the kernel.
Makes the name of the kernel .
private static string MakeKernelName(bool isSmall, bool is32, int dstDims, int srcDims, int idxDims)
        {
            return string.Format("{0}{1}_{2}_{3}_{4}",
                isSmall ? SmallBaseName : LargeBaseName,
                is32 ? "__int32" : "__int64",
                dstDims.ToString().Replace('-', 'M'),
                srcDims.ToString().Replace('-', 'M'),
                idxDims.ToString().Replace('-', 'M')
                );
        }
private static string MakeKernelName ( bool isSmall , bool is32 , int dstDims , int srcDims , int idxDims ) { return string . Format ( " " , isSmall ? SmallBaseName : LargeBaseName , is32 ? " " : " " , dstDims . ToString ( ) . Replace ( ' ' , ' ' ) , srcDims . ToString ( ) . Replace ( ' ' , ' ' ) , idxDims . ToString ( ) . Replace ( ' ' , ' ' ) ) ; }
Makes the name of the kernel.
Makes the name of the kernel .
None
isSmall
bool
if set to true
if set to true
is32
bool
if set to true
if set to true
dstDims
int
The DST dims.
The DST dims .
srcDims
int
The source dims.
The source dims .
idxDims
int
The index dims.
The index dims .