File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
src/GraphBLAS-sharp.Backend Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,8 @@ module internal PrefixSumInternal =
225225 /// </example>
226226 /// <param name="clContext">ClContext.</param>
227227 /// <param name="workGroupSize">Should be a power of 2 and greater than 1.</param>
228+ [<System.ObsoleteAttribute( " This method is deprecated due to bad perfomance. Use method from Scan module instead." ,
229+ false ) >]
228230 let standardExcludeInPlace ( clContext : ClContext ) workGroupSize =
229231
230232 let scan =
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ module internal Radix =
156156 let count = count clContext workGroupSize mask
157157
158158 let prefixSum =
159- PrefixSumInternal .standardExcludeInPlace clContext workGroupSize
159+ ScanInternal .standardExcludeInPlace clContext workGroupSize
160160
161161 let scatter = scatter clContext workGroupSize mask
162162
@@ -259,7 +259,7 @@ module internal Radix =
259259 let count = count clContext workGroupSize mask
260260
261261 let prefixSum =
262- PrefixSumInternal .standardExcludeInPlace clContext workGroupSize
262+ ScanInternal .standardExcludeInPlace clContext workGroupSize
263263
264264 let scatterByKey =
265265 scatterByKey clContext workGroupSize mask
Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ module Reduce =
529529 Scatter.lastOccurrence clContext workGroupSize
530530
531531 let prefixSum =
532- PrefixSumInternal .standardExcludeInPlace clContext workGroupSize
532+ ScanInternal .standardExcludeInPlace clContext workGroupSize
533533
534534 fun ( processor : MailboxProcessor < _ >) allocationMode ( keys : ClArray < int >) ( values : ClArray < 'a option >) ->
535535
@@ -661,7 +661,7 @@ module Reduce =
661661 Scatter.lastOccurrence clContext workGroupSize
662662
663663 let prefixSum =
664- PrefixSumInternal .standardExcludeInPlace clContext workGroupSize
664+ ScanInternal .standardExcludeInPlace clContext workGroupSize
665665
666666 fun ( processor : MailboxProcessor < _ >) allocationMode ( resultLength : int ) ( offsets : ClArray < int >) ( keys : ClArray < int >) ( values : ClArray < 'a >) ->
667667
@@ -940,7 +940,7 @@ module Reduce =
940940 Scatter.lastOccurrence clContext workGroupSize
941941
942942 let prefixSum =
943- PrefixSumInternal .standardExcludeInPlace clContext workGroupSize
943+ ScanInternal .standardExcludeInPlace clContext workGroupSize
944944
945945 fun ( processor : MailboxProcessor < _ >) allocationMode ( resultLength : int ) ( offsets : ClArray < int >) ( firstKeys : ClArray < int >) ( secondKeys : ClArray < int >) ( values : ClArray < 'a >) ->
946946
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ module SpMSpV =
6565 inputArray.[ i] <- 0 @>
6666
6767 let sum =
68- PrefixSumInternal .standardExcludeInPlace clContext workGroupSize
68+ ScanInternal .standardExcludeInPlace clContext workGroupSize
6969
7070 let prepareOffsets = clContext.Compile prepareOffsets
7171
You can’t perform that action at this time.
0 commit comments