Skip to content

Commit

Permalink
Small fixes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar committed Jun 1, 2024
1 parent 83ab367 commit fc0acd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GraphBLAS-sharp.Backend/Common/Sort/Bitonic.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ module Bitonic =
let localSize =
Common.Utils.floorToPower2 (
int (clContext.ClDevice.LocalMemSize)
/ (sizeof<uint64> + sizeof<'a>)
/ (sizeof<int> + sizeof<'a>)
)
/ 2

let maxThreadsPerBlock =
min (clContext.ClDevice.MaxWorkGroupSize) (localSize / 2)
Expand Down

0 comments on commit fc0acd1

Please sign in to comment.