1 write to dst
Microsoft.ML.CpuMath.PerformanceTests (1)
PerformanceTests.cs (1)
76
dst
= new float[Length];
65 references to dst
Microsoft.ML.CpuMath.PerformanceTests (65)
AvxPerformanceTests.cs (15)
18
=> AvxIntrinsics.AddScalarU(DefaultScale, new Span<float>(
dst
, 0, Length));
22
=> AvxIntrinsics.Scale(DefaultScale, new Span<float>(
dst
, 0, Length));
26
=> AvxIntrinsics.ScaleSrcU(DefaultScale, src,
dst
, Length);
30
=> AvxIntrinsics.ScaleAddU(DefaultScale, DefaultScale, new Span<float>(
dst
, 0, 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);
57
=> AvxIntrinsics.MulElementWiseU(src1, src2,
dst
, 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 (15)
27
fixed (float* pdst =
dst
)
36
fixed (float* pdst =
dst
)
46
fixed (float* pdst =
dst
)
55
fixed (float* pdst =
dst
)
65
fixed (float* pdst =
dst
)
75
fixed (float* pdst =
dst
)
86
fixed (float* pdst =
dst
)
97
fixed (float* pdst =
dst
)
107
fixed (float* pdst =
dst
)
119
fixed (float* pdst =
dst
)
192
fixed (float* pdst =
dst
)
202
fixed (float* pdst =
dst
)
213
fixed (float* pdst =
dst
)
223
fixed (float* pdst =
dst
)
234
fixed (float* pdst =
dst
)
PerformanceTests.cs (5)
90
dst
[i] = NextFloat(rand, ExponentRange);
91
original[i] =
dst
[i];
92
result[i] =
dst
[i];
114
testDstVectorAligned.CopyFrom(
dst
.AsSpan(0, matrixLength));
120
original.CopyTo(
dst
, 0);
SmallInputCpuMathPerformanceTests.cs (15)
17
=> CpuMathUtils.Add(DefaultScale,
dst
.AsSpan(0, arrayLength));
21
=> CpuMathUtils.Scale(DefaultScale,
dst
.AsSpan(0, arrayLength));
25
=> CpuMathUtils.Scale(DefaultScale, src,
dst
, arrayLength);
29
=> CpuMathUtils.ScaleAdd(DefaultScale, DefaultScale,
dst
.AsSpan(0, 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);
53
=> CpuMathUtils.MulElementWise(src1, src2,
dst
, 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 (15)
15
=> SseIntrinsics.AddScalarU(DefaultScale, new Span<float>(
dst
, 0, Length));
19
=> SseIntrinsics.Scale(DefaultScale, new Span<float>(
dst
, 0, Length));
23
=> SseIntrinsics.ScaleSrcU(DefaultScale, src,
dst
, Length);
27
=> SseIntrinsics.ScaleAddU(DefaultScale, DefaultScale, new Span<float>(
dst
, 0, 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);
51
=> SseIntrinsics.MulElementWiseU(src1, src2,
dst
, 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);