File tree 2 files changed +3
-2
lines changed
src/GraphBLAS-sharp.Backend/Common
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ module ClArray =
362
362
363
363
let gid = ndRange.GlobalID0
364
364
365
- if gid < length then
365
+ if gid < length && not result.Value then
366
366
let isExist = (% predicate) vector.[ gid]
367
367
368
368
if isExist then result.Value <- true @>
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ module Bitonic =
257
257
int ( clContext.ClDevice.LocalMemSize)
258
258
/ ( sizeof< int> + sizeof< 'a>)
259
259
)
260
+ / 2
260
261
261
262
let maxThreadsPerBlock =
262
263
min ( clContext.ClDevice.MaxWorkGroupSize) ( localSize / 2 )
@@ -476,4 +477,4 @@ module Bitonic =
476
477
477
478
kernelGlobal.KernelFunc ndRangeGlobal rows values values.Length ( localSize * 2 )
478
479
479
- queue.RunKernel( kernelGlobal)
480
+ queue.RunKernel( kernelGlobal)
You can’t perform that action at this time.
0 commit comments