Skip to content

Commit

Permalink
rc
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Feb 28, 2024
1 parent 6abcb10 commit d120fa4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ makedocs(;
]
],
repo = "https://github.com/JuliaFolds2/OhMyThreads.jl/blob/{commit}{path}#{line}",
format = Documenter.HTML(repolink = "https://github.com/JuliaFolds2/OhMyThreads.jl";
collapselevel = 1))
format = Documenter.HTML(repolink = "https://github.com/JuliaFolds2/OhMyThreads.jl"))

if ci
@info "Deploying documentation to GitHub"
Expand Down
4 changes: 2 additions & 2 deletions docs/src/literate/tls/tls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,14 @@ function matmulsums_perthread_channel_flipped(As, Bs; ntasks = nthreads())
end
tmapreduce(vcat, 1:ntasks; scheduler = DynamicScheduler(; nchunks = 0)) do _ # we turn chunking off
local C = Matrix{Float64}(undef, N, N)
map(chnl) do i
map(chnl) do i # implicitly takes the values from the channel (parallel safe)
A = As[i]
B = Bs[i]
mul!(C, A, B)
sum(C)
end
end
end
end;

# Note that one caveat of this approach is that the input → task assignment, and thus the
# order of the output, is **non-deterministic**. For this reason, we sort the output to check
Expand Down
6 changes: 1 addition & 5 deletions docs/src/literate/tls/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ function matmulsums_perthread_channel_flipped(As, Bs; ntasks = nthreads())
end
tmapreduce(vcat, 1:ntasks; scheduler = DynamicScheduler(; nchunks = 0)) do _ # we turn chunking off
local C = Matrix{Float64}(undef, N, N)
map(chnl) do i
map(chnl) do i # implicitly takes the values from the channel (parallel safe)
A = As[i]
B = Bs[i]
mul!(C, A, B)
Expand All @@ -458,10 +458,6 @@ function matmulsums_perthread_channel_flipped(As, Bs; ntasks = nthreads())
end
````

````
matmulsums_perthread_channel_flipped (generic function with 1 method)
````

Note that one caveat of this approach is that the input → task assignment, and thus the
order of the output, is **non-deterministic**. For this reason, we sort the output to check
for correctness.
Expand Down

0 comments on commit d120fa4

Please sign in to comment.