|
2 | 2 | # const LOOPVECBENCHDIR = joinpath(pkgdir("LoopVectorization"), "benchmarks")
|
3 | 3 | # includet(joinpath(LOOPVECBENCHDIR, "driver.jl"))
|
4 | 4 |
|
| 5 | +pkgdir(pkg::String) = abspath(joinpath(dirname(Base.find_package(pkg)), "..")) |
| 6 | +const LOOPVECBENCHDIR = joinpath(pkgdir("LoopVectorization"), "benchmarks") |
| 7 | +include(joinpath(LOOPVECBENCHDIR, "benchmarkflops.jl")) |
| 8 | +include(joinpath(LOOPVECBENCHDIR, "plotbenchmarks.jl")) |
| 9 | + |
| 10 | + |
5 | 11 | using Distributed
|
6 | 12 |
|
7 | 13 | addprocs(9);
|
@@ -33,5 +39,23 @@ exp_bench = fetch(exp_future)
|
33 | 39 | aplusBc_bench = fetch(aplusBc_future)
|
34 | 40 |
|
35 | 41 |
|
36 |
| -include(joinpath(LOOPVECBENCHDIR, "plotbenchmarks.jl")) |
| 42 | +plot(gemm_bench) |
| 43 | +plot(AtmulB_bench) |
| 44 | +plot(dot_bench) |
| 45 | +plot(selfdot_bench) |
| 46 | +plot(gemv_bench) |
| 47 | +plot(dot3_bench) |
| 48 | +plot(sse_bench) |
| 49 | +plot(exp_bench) |
| 50 | +plot(aplusBc_bench) |
| 51 | + |
| 52 | +save(joinpath("~/Pictures", "bench_gemm_v3.png"), plot(gemm_bench)); |
| 53 | +save(joinpath("~/Pictures", "bench_AtmulB_v3.png"), plot(AtmulB_bench)); |
| 54 | +save(joinpath("~/Pictures", "bench_dot_v3.png"), plot(dot_bench)); |
| 55 | +save(joinpath("~/Pictures", "bench_selfdot_v3.png"), plot(selfdot_bench)); |
| 56 | +save(joinpath("~/Pictures", "bench_gemv_v3.png"), plot(gemv_bench)); |
| 57 | +save(joinpath("~/Pictures", "bench_dot3_v3.png"), plot(dot3_bench)); |
| 58 | +save(joinpath("~/Pictures", "bench_sse_v3.png"), plot(sse_bench)); |
| 59 | +save(joinpath("~/Pictures", "bench_exp_v3.png"), plot(exp_bench)); |
| 60 | +save(joinpath("~/Pictures", "bench_aplusBc_v3.png"), plot(aplusBc_bench)); |
37 | 61 |
|
0 commit comments