Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of mapreduce #58

Merged
merged 2 commits into from
May 24, 2022
Merged

Remove use of mapreduce #58

merged 2 commits into from
May 24, 2022

Conversation

adrhill
Copy link
Member

@adrhill adrhill commented May 17, 2022

Closes #55 via pre-allocation of output arrays and loops.

@adrhill adrhill added the run benchmark Run benchmark CI action label May 17, 2022
@github-actions
Copy link

Benchmark result

Judge result

Benchmark Report for /home/runner/work/ExplainableAI.jl/ExplainableAI.jl

Job Properties

  • Time of benchmarks:
    • Target: 17 May 2022 - 16:35
    • Baseline: 17 May 2022 - 16:41
  • Package commits:
    • Target: e23944
    • Baseline: 4ec490
  • Julia commits:
    • Target: bf5349
    • Baseline: bf5349
  • Julia command flags:
    • Target: None
    • Baseline: None
  • Environment variables:
    • Target: None
    • Baseline: None

Results

A ratio greater than 1.0 denotes a possible regression (marked with ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). Only significant results - results
that indicate possible regressions or improvements - are shown below (thus, an empty table means that all
benchmark results remained invariant between builds).

ID time ratio memory ratio
["Layer", "Dense", "GammaRule"] 1.25 (5%) ❌ 1.00 (1%)
["Layer", "MaxPool", "EpsilonRule"] 1.08 (5%) ❌ 1.00 (1%)
["Layer", "MaxPool", "ZBoxRule"] 1.07 (5%) ❌ 1.00 (1%)
["Layer", "MaxPool", "ZeroRule"] 1.08 (5%) ❌ 1.00 (1%)
["Layer", "WrappedDense", "EpsilonRule"] 1.11 (5%) ❌ 1.00 (1%)
["VGG", "Gradient", "construct analyzer"] 0.84 (5%) ✅ 1.00 (1%)
["VGG", "InputTimesGradient", "analyze"] 0.02 (5%) ✅ 0.23 (1%) ✅
["VGG", "InputTimesGradient", "construct analyzer"] 1.32 (5%) ❌ 1.00 (1%)
["VGG", "LRPCustom", "analyze"] 0.28 (5%) ✅ 0.84 (1%) ✅
["VGG", "LRPCustom", "construct analyzer"] 0.24 (5%) ✅ 1.00 (1%)
["VGG", "LRPZero", "construct analyzer"] 0.91 (5%) ✅ 1.00 (1%)
["VGG", "SmoothGrad", "analyze"] 0.78 (5%) ✅ 0.94 (1%) ✅
["VGG", "SmoothGrad", "construct analyzer"] 1.15 (5%) ❌ 1.00 (1%)

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Layer", "Conv"]
  • ["Layer", "Dense"]
  • ["Layer", "MaxPool"]
  • ["Layer", "WrappedDense"]
  • ["VGG", "Gradient"]
  • ["VGG", "InputTimesGradient"]
  • ["VGG", "LRPCustom"]
  • ["VGG", "LRPZero"]
  • ["VGG", "SmoothGrad"]

Julia versioninfo

Target

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
      Ubuntu 20.04.4 LTS
  uname: Linux 5.13.0-1022-azure #26~20.04.1-Ubuntu SMP Thu Apr 7 19:42:45 UTC 2022 x86_64 x86_64
  CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
              speed         user         nice          sys         idle          irq
       #1  2294 MHz       5910 s          2 s        425 s       3803 s          0 s
       #2  2294 MHz       4175 s          1 s        547 s       5441 s          0 s
       
  Memory: 6.783607482910156 GB (1492.61328125 MB free)
  Uptime: 1025.17 sec
  Load Avg:  1.18  1.28  0.95
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)

Baseline

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
      Ubuntu 20.04.4 LTS
  uname: Linux 5.13.0-1022-azure #26~20.04.1-Ubuntu SMP Thu Apr 7 19:42:45 UTC 2022 x86_64 x86_64
  CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
              speed         user         nice          sys         idle          irq
       #1  2294 MHz       6283 s          2 s        515 s       6533 s          0 s
       #2  2294 MHz       7154 s          1 s        639 s       5562 s          0 s
       
  Memory: 6.783607482910156 GB (1508.203125 MB free)
  Uptime: 1345.44 sec
  Load Avg:  1.07  1.16  1.0
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)

Target result

Benchmark Report for /home/runner/work/ExplainableAI.jl/ExplainableAI.jl

Job Properties

  • Time of benchmark: 17 May 2022 - 16:35
  • Package commit: e23944
  • Julia commit: bf5349
  • Julia command flags: None
  • Environment variables: None

Results

Below is a table of this job's results, obtained by running the benchmarks.
The values listed in the ID column have the structure [parent_group, child_group, ..., key], and can be used to
index into the BaseBenchmarks suite to retrieve the corresponding benchmarks.
The percentages accompanying time and memory values in the below table are noise tolerances. The "true"
time/memory value for a given benchmark is expected to fall within this percentage of the reported value.
An empty cell means that the value was zero.

ID time GC time memory allocations
["Layer", "Conv", "EpsilonRule"] 951.807 μs (5%) 1.43 MiB (1%) 169
["Layer", "Conv", "GammaRule"] 948.907 μs (5%) 1.44 MiB (1%) 181
["Layer", "Conv", "ZBoxRule"] 3.050 ms (5%) 4.46 MiB (1%) 492
["Layer", "Conv", "ZeroRule"] 956.106 μs (5%) 1.43 MiB (1%) 169
["Layer", "Dense", "EpsilonRule"] 80.301 μs (5%) 1.45 KiB (1%) 3
["Layer", "Dense", "GammaRule"] 181.601 μs (5%) 588.98 KiB (1%) 12
["Layer", "Dense", "ZBoxRule"] 622.004 μs (5%) 1017.84 KiB (1%) 152
["Layer", "Dense", "ZeroRule"] 81.800 μs (5%) 1.45 KiB (1%) 3
["Layer", "MaxPool", "EpsilonRule"] 107.901 μs (5%) 86.69 KiB (1%) 61
["Layer", "MaxPool", "GammaRule"] 104.201 μs (5%) 86.69 KiB (1%) 61
["Layer", "MaxPool", "ZBoxRule"] 108.800 μs (5%) 85.97 KiB (1%) 61
["Layer", "MaxPool", "ZeroRule"] 111.300 μs (5%) 85.97 KiB (1%) 61
["Layer", "WrappedDense", "EpsilonRule"] 181.401 μs (5%) 206.62 KiB (1%) 57
["Layer", "WrappedDense", "GammaRule"] 284.502 μs (5%) 794.16 KiB (1%) 66
["Layer", "WrappedDense", "ZBoxRule"] 622.604 μs (5%) 1017.84 KiB (1%) 152
["Layer", "WrappedDense", "ZeroRule"] 181.401 μs (5%) 206.19 KiB (1%) 57
["VGG", "Gradient", "analyze"] 1.489 s (5%) 17.214 ms 1.10 GiB (1%) 2012
["VGG", "Gradient", "construct analyzer"] 19.900 μs (5%) 26.66 KiB (1%) 189
["VGG", "InputTimesGradient", "analyze"] 1.492 s (5%) 25.545 ms 1.10 GiB (1%) 2015
["VGG", "InputTimesGradient", "construct analyzer"] 19.200 μs (5%) 26.66 KiB (1%) 189
["VGG", "LRPCustom", "analyze"] 2.611 s (5%) 36.236 ms 2.47 GiB (1%) 2731
["VGG", "LRPCustom", "construct analyzer"] 31.500 μs (5%) 45.52 KiB (1%) 155
["VGG", "LRPZero", "analyze"] 1.442 s (5%) 16.628 ms 830.02 MiB (1%) 2285
["VGG", "LRPZero", "construct analyzer"] 22.100 μs (5%) 43.88 KiB (1%) 82
["VGG", "SmoothGrad", "analyze"] 14.780 s (5%) 131.901 ms 10.33 GiB (1%) 16857
["VGG", "SmoothGrad", "construct analyzer"] 15.100 μs (5%) 24.69 KiB (1%) 187

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Layer", "Conv"]
  • ["Layer", "Dense"]
  • ["Layer", "MaxPool"]
  • ["Layer", "WrappedDense"]
  • ["VGG", "Gradient"]
  • ["VGG", "InputTimesGradient"]
  • ["VGG", "LRPCustom"]
  • ["VGG", "LRPZero"]
  • ["VGG", "SmoothGrad"]

Julia versioninfo

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
      Ubuntu 20.04.4 LTS
  uname: Linux 5.13.0-1022-azure #26~20.04.1-Ubuntu SMP Thu Apr 7 19:42:45 UTC 2022 x86_64 x86_64
  CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
              speed         user         nice          sys         idle          irq
       #1  2294 MHz       5910 s          2 s        425 s       3803 s          0 s
       #2  2294 MHz       4175 s          1 s        547 s       5441 s          0 s
       
  Memory: 6.783607482910156 GB (1492.61328125 MB free)
  Uptime: 1025.17 sec
  Load Avg:  1.18  1.28  0.95
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)

Baseline result

Benchmark Report for /home/runner/work/ExplainableAI.jl/ExplainableAI.jl

Job Properties

  • Time of benchmark: 17 May 2022 - 16:41
  • Package commit: 4ec490
  • Julia commit: bf5349
  • Julia command flags: None
  • Environment variables: None

Results

Below is a table of this job's results, obtained by running the benchmarks.
The values listed in the ID column have the structure [parent_group, child_group, ..., key], and can be used to
index into the BaseBenchmarks suite to retrieve the corresponding benchmarks.
The percentages accompanying time and memory values in the below table are noise tolerances. The "true"
time/memory value for a given benchmark is expected to fall within this percentage of the reported value.
An empty cell means that the value was zero.

ID time GC time memory allocations
["Layer", "Conv", "EpsilonRule"] 937.407 μs (5%) 1.43 MiB (1%) 169
["Layer", "Conv", "GammaRule"] 937.607 μs (5%) 1.44 MiB (1%) 181
["Layer", "Conv", "ZBoxRule"] 3.059 ms (5%) 4.46 MiB (1%) 492
["Layer", "Conv", "ZeroRule"] 935.406 μs (5%) 1.43 MiB (1%) 169
["Layer", "Dense", "EpsilonRule"] 81.400 μs (5%) 1.45 KiB (1%) 3
["Layer", "Dense", "GammaRule"] 144.901 μs (5%) 588.98 KiB (1%) 12
["Layer", "Dense", "ZBoxRule"] 615.804 μs (5%) 1017.84 KiB (1%) 152
["Layer", "Dense", "ZeroRule"] 81.200 μs (5%) 1.45 KiB (1%) 3
["Layer", "MaxPool", "EpsilonRule"] 99.801 μs (5%) 86.69 KiB (1%) 61
["Layer", "MaxPool", "GammaRule"] 103.100 μs (5%) 86.69 KiB (1%) 61
["Layer", "MaxPool", "ZBoxRule"] 102.000 μs (5%) 85.97 KiB (1%) 61
["Layer", "MaxPool", "ZeroRule"] 102.701 μs (5%) 85.97 KiB (1%) 61
["Layer", "WrappedDense", "EpsilonRule"] 164.001 μs (5%) 206.62 KiB (1%) 57
["Layer", "WrappedDense", "GammaRule"] 276.002 μs (5%) 794.16 KiB (1%) 66
["Layer", "WrappedDense", "ZBoxRule"] 614.905 μs (5%) 1017.84 KiB (1%) 152
["Layer", "WrappedDense", "ZeroRule"] 178.501 μs (5%) 206.19 KiB (1%) 57
["VGG", "Gradient", "analyze"] 1.470 s (5%) 16.931 ms 1.10 GiB (1%) 2008
["VGG", "Gradient", "construct analyzer"] 23.600 μs (5%) 26.66 KiB (1%) 189
["VGG", "InputTimesGradient", "analyze"] 70.417 s (5%) 1.182 s 4.81 GiB (1%) 70171465
["VGG", "InputTimesGradient", "construct analyzer"] 14.600 μs (5%) 26.66 KiB (1%) 189
["VGG", "LRPCustom", "analyze"] 9.411 s (5%) 195.591 ms 2.94 GiB (1%) 9545590
["VGG", "LRPCustom", "construct analyzer"] 132.201 μs (5%) 45.52 KiB (1%) 155
["VGG", "LRPZero", "analyze"] 1.453 s (5%) 15.689 ms 830.02 MiB (1%) 2285
["VGG", "LRPZero", "construct analyzer"] 24.300 μs (5%) 43.88 KiB (1%) 82
["VGG", "SmoothGrad", "analyze"] 18.903 s (5%) 352.023 ms 11.01 GiB (1%) 12490333
["VGG", "SmoothGrad", "construct analyzer"] 13.100 μs (5%) 24.69 KiB (1%) 187

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["Layer", "Conv"]
  • ["Layer", "Dense"]
  • ["Layer", "MaxPool"]
  • ["Layer", "WrappedDense"]
  • ["VGG", "Gradient"]
  • ["VGG", "InputTimesGradient"]
  • ["VGG", "LRPCustom"]
  • ["VGG", "LRPZero"]
  • ["VGG", "SmoothGrad"]

Julia versioninfo

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
      Ubuntu 20.04.4 LTS
  uname: Linux 5.13.0-1022-azure #26~20.04.1-Ubuntu SMP Thu Apr 7 19:42:45 UTC 2022 x86_64 x86_64
  CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
              speed         user         nice          sys         idle          irq
       #1  2294 MHz       6283 s          2 s        515 s       6533 s          0 s
       #2  2294 MHz       7154 s          1 s        639 s       5562 s          0 s
       
  Memory: 6.783607482910156 GB (1508.203125 MB free)
  Uptime: 1345.44 sec
  Load Avg:  1.07  1.16  1.0
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)

Runtime information

Runtime Info
BLAS #threads 2
BLAS.vendor() openblas64
Sys.CPU_THREADS 2

lscpu output:

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   46 bits physical, 48 bits virtual
CPU(s):                          2
On-line CPU(s) list:             0,1
Thread(s) per core:              1
Core(s) per socket:              2
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           79
Model name:                      Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
Stepping:                        1
CPU MHz:                         2294.685
BogoMIPS:                        4589.37
Hypervisor vendor:               Microsoft
Virtualization type:             full
L1d cache:                       64 KiB
L1i cache:                       64 KiB
L2 cache:                        512 KiB
L3 cache:                        50 MiB
NUMA node0 CPU(s):               0,1
Vulnerability Itlb multihit:     KVM: Mitigation: VMX unsupported
Vulnerability L1tf:              Mitigation; PTE Inversion
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT Host state unknown
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Retpolines, STIBP disabled, RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Mitigation; Clear CPU buffers; SMT Host state unknown
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt md_clear
Cpu Property Value
Brand Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
Vendor :Intel
Architecture :Broadwell
Model Family: 0x06, Model: 0x4f, Stepping: 0x01, Type: 0x00
Cores 2 physical cores, 2 logical cores (on executing CPU)
No Hyperthreading hardware capability detected
Clock Frequencies Not supported by CPU
Data Cache Level 1:3 : (32, 256, 51200) kbytes
64 byte cache line size
Address Size 48 bits virtual, 46 bits physical
SIMD 256 bit = 32 byte max. SIMD vector size
Time Stamp Counter TSC is accessible via rdtsc
TSC increased at every clock cycle (non-invariant TSC)
Perf. Monitoring Performance Monitoring Counters (PMC) are not supported
Hypervisor Yes, Microsoft

@adrhill
Copy link
Member Author

adrhill commented May 24, 2022

Results of local benchmarks:

                                         ID                 time ratio               memory ratio
  ––––––––––––––––––––––––––––––––––––––––– –––––––––––––––––––––––––– ––––––––––––––––––––––––––
  ["VGG", "Gradient", "construct analyzer"]              1.05 (5%) :x:                  1.00 (1%)
   ["VGG", "InputTimesGradient", "analyze"] 0.32 (5%) :whitecheckmark: 0.47 (1%) :whitecheckmark:
              ["VGG", "LRPZero", "analyze"] 0.91 (5%) :whitecheckmark:                  1.00 (1%)

@adrhill adrhill merged commit f1b89ab into master May 24, 2022
@adrhill adrhill deleted the ah/drop-mapreduce branch May 24, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run benchmark Run benchmark CI action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove use of mapreduce
1 participant