Skip to content

Commit

Permalink
Update falsesharing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer authored May 4, 2024
1 parent e7dfce3 commit f660cf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/literate/falsesharing/falsesharing.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ catastrophic numerical errors due to potential rearrangements of terms in the su
A common, manual implementation of this idea might look like this:

````julia
using OhMyThreads: @spawn
using ChunkSplitters: chunks
using OhMyThreads: @spawn, chunks

function parallel_sum_falsesharing(data; nchunks = nthreads())
psums = zeros(eltype(data), nchunks)
Expand Down

0 comments on commit f660cf2

Please sign in to comment.