Skip to content

loop08 very broken #5

@bernecky

Description

@bernecky

Waiting for pull request on ctestsupport to get approved.

There are several problems with the LivermoreLoops. First, loop08 has several weird things going on, so
I will assign this to Bodo, as loop08 looks like his code:


         45 - Test-seq-loop08_c-mt1 (Failed)
         46 - Test-seq-loop08_c-mt2 (Failed)
         55 - Test-seq-loop08-split_c-mt1 (Failed)
         56 - Test-seq-loop08-split_c-mt2 (Failed)
         57 - Test-seq-loop08-split_naive-mt1 (Failed)
         58 - Test-seq-loop08-split_naive-mt2 (Failed)
         59 - Test-seq-loop08-split_naive2-mt1 (Failed)
         60 - Test-seq-loop08-split_naive2-mt2 (Failed)
         61 - Test-seq-loop08-split_apl-mt1 (Failed)
         62 - Test-seq-loop08-split_apl-mt2 (Failed)
        107 - Test-mt_pth-loop08_c-mt1 (Failed)
        108 - Test-mt_pth-loop08_c-mt2 (Failed)
        110 - Test-mt_pth-loop08_naive-mt2 (SEGFAULT)
        112 - Test-mt_pth-loop08_naive2-mt2 (SEGFAULT)
        114 - Test-mt_pth-loop08_apl-mt2 (SEGFAULT)
        116 - Test-mt_pth-loop08_apl2-mt2 (SEGFAULT)
        117 - Test-mt_pth-loop08-split_c-mt1 (Failed)
        118 - Test-mt_pth-loop08-split_c-mt2 (Failed)
        119 - Test-mt_pth-loop08-split_naive-mt1 (Failed)
        120 - Test-mt_pth-loop08-split_naive-mt2 (Failed)
        121 - Test-mt_pth-loop08-split_naive2-mt1 (Failed)
        122 - Test-mt_pth-loop08-split_naive2-mt2 (Failed)
        123 - Test-mt_pth-loop08-split_apl-mt1 (Failed)
        124 - Test-mt_pth-loop08-split_apl-mt2 (Failed)
Errors while running CTest
Output from these tests are in: /home/sac/sac/benchmarks/LivermoreLoopsCtest/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest/build$ 
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest/build$ cd ..
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest$ ls
build  cmake-common  CMakeLists.txt  loop01  loop02  loop03  loop04  loop05  loop06  loop07  loop08  LoopsInFortran  README.md
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest$ git status .
On branch ctestsupport
Your branch is up to date with 'origin/ctestsupport'.

  1. Here, results differ, by variant.
  2. In loop04, timings are horrible for some variants (apl. apl2). See below.
  3. Also in loop04-mt-pth, timings GROW as thread count increases.
  4. In the loop08-apl2 SEGFAULT above, running with "-check a" quickly gives us:
*** SAC runtime error
*** Tried to subsequently de-allocate heap location in arena 6
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest/build$ time loop04-seq/loop04_c -mt 0 20000000 35; echo $?
Running Loop4_C
Number of repetitions: 20000000
Vector length        : 1001
Upper limit (n)      : 35
Element [5] of the result is: -0.073587732613706644, WANT is: -0.0735877326136999965
x[5] - WANT is -6.64746035994312479e-15
WANT - x[5] is 6.64746035994312479e-15
Wall Clock Time spent           :   0.255 secs
Computer Performance achieved   :   1.882 GFlops/s

real    0m0.257s
user    0m0.257s
sys     0m0.000s
0
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest/build$ time loop04-seq/loop04_apl -mt 0 20000000 35; echo $?
Running Loop4_APL
Number of repetitions: 20000000
Vector length        : 1001
Upper limit (n)      : 35
Element [5] of the result is: -0.073587732613706644, WANT is: -0.0735877326136999965
x[5] - WANT is -6.64746035994312479e-15
WANT - x[5] is 6.64746035994312479e-15
Wall Clock Time spent           :   4.141 secs
Computer Performance achieved   :   0.116 GFlops/s

real    0m4.143s
user    0m4.143s
sys     0m0.000s
0
sac@medusa:~/sac/benchmarks/LivermoreLoopsCtest/build$ time loop04-seq/loop04_apl2 -mt 0 20000000 35; echo $?
Running Loop4_APL2
Number of repetitions: 20000000
Vector length        : 1001
Upper limit (n)      : 35
Element [5] of the result is: -0.073587732613706644, WANT is: -0.0735877326136999965
x[5] - WANT is -6.64746035994312479e-15
WANT - x[5] is 6.64746035994312479e-15
Wall Clock Time spent           :  16.874 secs
Computer Performance achieved   :   0.028 GFlops/s

real    0m16.875s
user    0m16.875s
sys     0m0.000s
0

Also, multi-thread timings get MUCH worse as threads are added:

 time loop04-mt_pth/loop04_apl2 -mt 2 20000000 35; echo $?
Running Loop4_APL2
Number of repetitions: 20000000
Vector length        : 1001
Upper limit (n)      : 35
^C
real    0m52.424s
user    1m44.842s
sys     0m0.004s

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions