diff --git a/docs/make.jl b/docs/make.jl index 3150bc23..f2718244 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -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" diff --git a/docs/src/literate/tls/tls.jl b/docs/src/literate/tls/tls.jl index 662c81b6..4ab6ed6f 100644 --- a/docs/src/literate/tls/tls.jl +++ b/docs/src/literate/tls/tls.jl @@ -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 diff --git a/docs/src/literate/tls/tls.md b/docs/src/literate/tls/tls.md index be908ef8..558af45b 100644 --- a/docs/src/literate/tls/tls.md +++ b/docs/src/literate/tls/tls.md @@ -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) @@ -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.