File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/GraphBLAS-sharp.Backend/Common Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ module ClArray =
362362
363363 let gid = ndRange.GlobalID0
364364
365- if gid < length then
365+ if gid < length && not result.Value then
366366 let isExist = (% predicate) vector.[ gid]
367367
368368 if isExist then result.Value <- true @>
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ module Bitonic =
257257 int ( clContext.ClDevice.LocalMemSize)
258258 / ( sizeof< int> + sizeof< 'a>)
259259 )
260+ / 2
260261
261262 let maxThreadsPerBlock =
262263 min ( clContext.ClDevice.MaxWorkGroupSize) ( localSize / 2 )
@@ -476,4 +477,4 @@ module Bitonic =
476477
477478 kernelGlobal.KernelFunc ndRangeGlobal rows values values.Length ( localSize * 2 )
478479
479- queue.RunKernel( kernelGlobal)
480+ queue.RunKernel( kernelGlobal)
You can’t perform that action at this time.
0 commit comments