1 write to src
Microsoft.ML.CpuMath.PerformanceTests (1)
PerformanceTests.cs (1)
75src = new float[Length];
74 references to src
Microsoft.ML.CpuMath.PerformanceTests (74)
AvxPerformanceTests.cs (18)
26=> AvxIntrinsics.ScaleSrcU(DefaultScale, src, dst, Length); 35=> AvxIntrinsics.AddScaleU(DefaultScale, src, dst, Length); 40=> AvxIntrinsics.AddScaleSU(DefaultScale, src, idx, dst, IndexLength); 45=> AvxIntrinsics.AddScaleCopyU(DefaultScale, src, dst, result, Length); 49=> AvxIntrinsics.AddU(src, dst, Length); 53=> AvxIntrinsics.AddSU(src, idx, dst, IndexLength); 61=> AvxIntrinsics.Sum(new Span<float>(src, 0, Length)); 66=> AvxIntrinsics.SumSqU(new Span<float>(src, 0, Length)); 71=> AvxIntrinsics.SumSqDiffU(DefaultScale, new Span<float>(src, 0, Length)); 75=> AvxIntrinsics.SumAbsU(new Span<float>(src, 0, Length)); 79=> AvxIntrinsics.SumAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 83=> AvxIntrinsics.MaxAbsU(new Span<float>(src, 0, Length)); 87=> AvxIntrinsics.MaxAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 92=> AvxIntrinsics.DotU(src, dst, Length); 97=> AvxIntrinsics.DotSU(src, dst, idx, IndexLength); 102=> AvxIntrinsics.Dist2(src, dst, Length); 107=> AvxIntrinsics.SdcaL1UpdateU(DefaultScale, Length, src, DefaultScale, dst, result); 112=> AvxIntrinsics.SdcaL1UpdateSU(DefaultScale, IndexLength, src, idx, DefaultScale, dst, result);
NativePerformanceTests.cs (18)
45fixed (float* psrc = src) 64fixed (float* psrc = src) 74fixed (float* psrc = src) 85fixed (float* psrc = src) 96fixed (float* psrc = src) 106fixed (float* psrc = src) 128fixed (float* psrc = src) 137fixed (float* psrc = src) 146fixed (float* psrc = src) 155fixed (float* psrc = src) 164fixed (float* psrc = src) 173fixed (float* psrc = src) 182fixed (float* psrc = src) 191fixed (float* psrc = src) 201fixed (float* psrc = src) 212fixed (float* psrc = src) 222fixed (float* psrc = src) 233fixed (float* psrc = src)
PerformanceTests.cs (2)
89src[i] = NextFloat(rand, ExponentRange); 108testMatrixAligned.CopyFrom(src.AsSpan(0, (matrixLength - 1) * (matrixLength - 1)));
SmallInputCpuMathPerformanceTests.cs (18)
25=> CpuMathUtils.Scale(DefaultScale, src, dst, arrayLength); 33=> CpuMathUtils.AddScale(DefaultScale, src, dst, arrayLength); 37=> CpuMathUtils.AddScale(DefaultScale, src, idx, dst, arrayLength); 41=> CpuMathUtils.AddScaleCopy(DefaultScale, src, dst, result, arrayLength); 45=> CpuMathUtils.Add(src, dst, arrayLength); 49=> CpuMathUtils.Add(src, idx, dst, arrayLength); 57=> CpuMathUtils.Sum(new Span<float>(src, 0, arrayLength)); 61=> CpuMathUtils.SumSq(new Span<float>(src, 0, arrayLength)); 65=> CpuMathUtils.SumSq(DefaultScale, src.AsSpan(0, arrayLength)); 69=> CpuMathUtils.SumAbs(src.AsSpan(0, arrayLength)); 73=> CpuMathUtils.SumAbs(DefaultScale, src.AsSpan(0, arrayLength)); 77=> CpuMathUtils.MaxAbs(src.AsSpan(0, arrayLength)); 81=> CpuMathUtils.MaxAbsDiff(DefaultScale, src.AsSpan(0, arrayLength)); 85=> CpuMathUtils.DotProductDense(src, dst, arrayLength); 89=> CpuMathUtils.DotProductSparse(src, dst, idx, arrayLength); 93=> CpuMathUtils.L2DistSquared(src, dst, arrayLength); 97=> CpuMathUtils.SdcaL1UpdateDense(DefaultScale, arrayLength, src, DefaultScale, dst, result); 101=> CpuMathUtils.SdcaL1UpdateSparse(DefaultScale, arrayLength, src, idx, DefaultScale, dst, result);
SsePerformanceTests.cs (18)
23=> SseIntrinsics.ScaleSrcU(DefaultScale, src, dst, Length); 31=> SseIntrinsics.AddScaleU(DefaultScale, src, dst, Length); 35=> SseIntrinsics.AddScaleSU(DefaultScale, src, idx, dst, IndexLength); 39=> SseIntrinsics.AddScaleCopyU(DefaultScale, src, dst, result, Length); 43=> SseIntrinsics.AddU(src, dst, Length); 47=> SseIntrinsics.AddSU(src, idx, dst, IndexLength); 55=> SseIntrinsics.Sum(new Span<float>(src, 0, Length)); 59=> SseIntrinsics.SumSqU(new Span<float>(src, 0, Length)); 63=> SseIntrinsics.SumSqDiffU(DefaultScale, new Span<float>(src, 0, Length)); 67=> SseIntrinsics.SumAbsU(new Span<float>(src, 0, Length)); 71=> SseIntrinsics.SumAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 75=> SseIntrinsics.MaxAbsU(new Span<float>(src, 0, Length)); 79=> SseIntrinsics.MaxAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 83=> SseIntrinsics.DotU(src, dst, Length); 87=> SseIntrinsics.DotSU(src, dst, idx, IndexLength); 91=> SseIntrinsics.Dist2(src, dst, Length); 95=> SseIntrinsics.SdcaL1UpdateU(DefaultScale, Length, src, DefaultScale, dst, result); 99=> SseIntrinsics.SdcaL1UpdateSU(DefaultScale, IndexLength, src, idx, DefaultScale, dst, result);