Skip to content

Commit 8967f15

Browse files
committed
Update benchmark plots, don't test (self)dot loop lengths.
1 parent 23627b7 commit 8967f15

21 files changed

+8
-4
lines changed

benchmark/driver.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ include(joinpath(LOOPVECBENCHDIR, "benchmarkflops.jl"))
99
include(joinpath(LOOPVECBENCHDIR, "plotbenchmarks.jl"))
1010

1111

12-
nprocs_to_add() = (Sys.CPU_THREADS >> 1) - 1
12+
# nprocs_to_add() = (Sys.CPU_THREADS >> 1) - 1
13+
nprocs_to_add() = (Sys.CPU_THREADS >> 1)
1314
start_worker(wid) = remotecall(include, wid, joinpath(LOOPVECBENCHDIR, "setup_worker.jl"))
1415
function start_workers()
1516
addprocs(nprocs_to_add())

benchmark/looptests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ function gemmavx!(𝐂, 𝐀, 𝐁)
7373
end
7474
function jdot(a, b)
7575
s = zero(eltype(a))
76-
@inbounds @simd ivdep for i eachindex(a, b)
76+
# @inbounds @simd ivdep for i ∈ eachindex(a,b)
77+
@inbounds @simd ivdep for i eachindex(a)
7778
s += a[i] * b[i]
7879
end
7980
s
8081
end
8182
function jdotavx(a, b)
8283
s = zero(eltype(a))
83-
@avx for i eachindex(a, b)
84+
# @avx for i ∈ eachindex(a,b)
85+
@avx for i eachindex(a)
8486
s += a[i] * b[i]
8587
end
8688
s

docs/src/assets/bench_AmulB_v1.png

3.62 KB
Loading

docs/src/assets/bench_AmulBt_v1.png

1.6 KB
Loading

docs/src/assets/bench_Amulvb_v1.png

-2.52 KB
Loading

docs/src/assets/bench_AplusAt_v1.png

-9.65 KB
Loading

docs/src/assets/bench_AtmulB_v1.png

-6.27 KB
Loading

docs/src/assets/bench_AtmulBt_v1.png

-4.08 KB
Loading

docs/src/assets/bench_Atmulvb_v1.png

-523 Bytes
Loading

docs/src/assets/bench_aplusBc_v1.png

22.7 KB
Loading

0 commit comments

Comments
 (0)