Test fail: test_benchdnn_resampling_ci_cpu
Summary
oneDNN CI testing suite fails due to test_benchdnn_resampling_ci_cpu.
Version
This issue is still present in master, but started since commit https://github.com/oneapi-src/oneDNN/commit/84afca36d8072f7111810686ae80e5b365586e0f
+4 commit 84afca36d8072f7111810686ae80e5b365586e0f - builds OK, test failure
+3 commit bb5eb197274942316780e17942abd5bc14184a7e - compilation failure
+2 commit 5c61bec80e5bbf1e724f8738b014ef1851399a3b - compilation failure
+1 commit be5f7e0fa22b456e22d433aa3ccdd3e9abd51030 - compilation failure
0 commit 40a0eb1d7b1da69a4b1d72ed90b7657ab9870a61 - compilation failure
-1 commit d0cbee489c31e5748771ce2082cae3371c4b1672 - builds OK, test PASS
Environment
I tested this for multiple platforms and build configurations. The issue exists for Aarch64 (with and without Compute Library) and also x86 (with and without ARCH_GENERIC)
Steps to reproduce
git clone https://github.com/oneapi-src/oneDNN
mkdir build && cd build
cmake .. -DDNNL_BUILD_FOR_CI=ON
ctest -R test_benchdnn_resampling_ci_cpu
Observed behavior
Some examples of verbose test outputs:
int8
$ ./tests/benchdnn/benchdnn -v10 --resampling --ddt=s8 --tag=axb --alg=linear ic17ih6iw12oh7ow14
run: --resampling --ddt=s8 --tag=axb --alg=linear ic17ih6iw12oh7ow14
oneDNN implementation: simple:any
oneDNN implementation: simple:any
Requested: 3.37549e-05 GB, benchdnn limit: 140.556 GB, CPU RAM capacity: 187.408 GB, GPU RAM capacity: 0 GB
[ 182][0x1x6x0] exp_f32: 2.5 exp: 3 got: 2 diff: 1 rdiff:0.333333
[ 476][0x4x6x0] exp_f32: 12.5 exp: 12 got: 13 diff: 1 rdiff:0.0833333
[ 489][0x4x6x13] exp_f32: 7.5 exp: 8 got: 7 diff: 1 rdiff: 0.125
[ 783][0x7x6x13] exp_f32: 17.5 exp: 18 got: 17 diff: 1 rdiff:0.0555556
[1848][1x1x6x0] exp_f32: 2.5 exp: 3 got: 2 diff: 1 rdiff:0.333333
[2142][1x4x6x0] exp_f32: 12.5 exp: 12 got: 13 diff: 1 rdiff:0.0833333
[2155][1x4x6x13] exp_f32: 7.5 exp: 8 got: 7 diff: 1 rdiff: 0.125
[2449][1x7x6x13] exp_f32: 17.5 exp: 18 got: 17 diff: 1 rdiff:0.0555556
@@@ error [int resampling::doit(const resampling::prb_t*, res_t*):245]: 'cmp.compare(dst_fp, dst_dt, prb->attr, res)' -> 1
0:FAILED (errors:8 total:3332) __REPRO: --resampling --ddt=s8 --tag=axb --alg=linear ic17ih6iw12oh7ow14
tests:1 passed:0 skipped:0 mistrusted:0 unimplemented:0 failed:1 listed:0
fp32
$ ./tests/benchdnn/benchdnn -v10 --resampling --tag=axb --alg=linear --attr-post-ops="'sum;add:f32'" ic9id2ih8iw12od3oh5ow7
run: --resampling --tag=axb --alg=linear --attr-post-ops="'sum;add:f32'" ic9id2ih8iw12od3oh5ow7
oneDNN implementation: jit:avx512_core
oneDNN implementation: jit:avx512_core
Requested: 3.98308e-05 GB, benchdnn limit: 140.556 GB, CPU RAM capacity: 187.408 GB, GPU RAM capacity: 0 GB
[ 53][0x0x1x2x4] exp_f32: 2.29911 exp: 2.29911 got: 2.29911 diff:9.53674e-07 rdiff:4.14802e-07
[ 138][0x1x0x4x5] exp_f32:0.0714293 exp:0.0714293 got:0.0714288 diff:4.76837e-07 rdiff:6.67566e-06
[ 233][0x2x0x3x2] exp_f32: 1.08929 exp: 1.08929 got: 1.08929 diff:4.76837e-07 rdiff:4.37752e-07
[ 240][0x2x0x4x2] exp_f32:0.964289 exp:0.964289 got:0.964289 diff:4.76837e-07 rdiff:4.94496e-07
[ 325][0x3x0x1x3] exp_f32: 1.3125 exp: 1.3125 got: 1.3125 diff:4.76837e-07 rdiff:3.63304e-07
[ 420][0x4x0x0x0] exp_f32: 2.33036 exp: 2.33036 got: 2.33036 diff:9.53674e-07 rdiff:4.09239e-07
[ 427][0x4x0x1x0] exp_f32:-0.526785 exp:-0.526785 got:-0.526786 diff:4.76837e-07 rdiff:9.05183e-07
[ 580][0x5x1x2x6] exp_f32: 2.20982 exp: 2.20982 got: 2.20982 diff:9.53674e-07 rdiff:4.31562e-07
[ 617][0x5x2x3x1] exp_f32:0.669641 exp:0.669641 got:0.669642 diff:4.76837e-07 rdiff:7.12078e-07
[ 624][0x5x2x4x1] exp_f32:0.241073 exp:0.241073 got:0.241073 diff:4.76837e-07 rdiff:1.97798e-06
[ 634][0x6x0x0x4] exp_f32: 2.34822 exp: 2.34822 got: 2.34822 diff:9.53674e-07 rdiff:4.06127e-07
[ 692][0x6x1x3x6] exp_f32:0.352675 exp:0.352675 got:0.352676 diff:4.76837e-07 rdiff:1.35206e-06
[ 896][0x8x1x3x0] exp_f32: 1.83482 exp: 1.83482 got: 1.83482 diff:9.53674e-07 rdiff:5.19764e-07
[1056][1x1x0x0x6] exp_f32:-1.01786 exp:-1.01786 got:-1.01786 diff:4.76837e-07 rdiff:4.68471e-07
[1059][1x1x0x1x2] exp_f32:-1.28571 exp:-1.28571 got:-1.28571 diff:4.76837e-07 rdiff:3.70873e-07
[1073][1x1x0x3x2] exp_f32: 4.38393 exp: 4.38393 got: 4.38393 diff:1.90735e-06 rdiff:4.35078e-07
[1158][1x2x0x0x3] exp_f32: -0.125 exp: -0.125 got: -0.125 diff:4.76837e-07 rdiff:3.8147e-06
[1209][1x2x1x2x5] exp_f32: 2.25446 exp: 2.25446 got: 2.25446 diff:9.53674e-07 rdiff:4.23016e-07
[1260][1x3x0x0x0] exp_f32:0.767857 exp:0.767857 got:0.767858 diff:9.53674e-07 rdiff:1.242e-06
[1481][1x5x0x1x4] exp_f32: 2.63393 exp: 2.63393 got: 2.63393 diff:9.53674e-07 rdiff:3.62073e-07
[1583][1x6x0x1x1] exp_f32:0.794641 exp:0.794641 got:0.794642 diff:4.76837e-07 rdiff:6.00066e-07
[1600][1x6x0x3x4] exp_f32: 1.25893 exp: 1.25893 got: 1.25893 diff:4.76837e-07 rdiff:3.78764e-07
[1838][1x8x1x2x4] exp_f32: 2.29911 exp: 2.29911 got: 2.29911 diff:9.53674e-07 rdiff:4.14802e-07
@@@ error [int resampling::doit(const resampling::prb_t*, res_t*):245]: 'cmp.compare(dst_fp, dst_dt, prb->attr, res)' -> 1
0:FAILED (errors:23 total:1890) __REPRO: --resampling --tag=axb --alg=linear --attr-post-ops="'sum;add:f32'" ic9id2ih8iw12od3oh5ow7
tests:1 passed:0 skipped:0 mistrusted:0 unimplemented:0 failed:1 listed:
Expected behavior
Test passes
Hi Diana , Thank you for your report. We are aware of this issue and working on a fix. The issue affects post operations and integer data type in resampling. Sorry for inconvenience.
Regards, Igor Safonov
Fixed with 6a28cbc82eb54405f00ffe50c3492669d71b9a9d and 33b3523c9333eca876366e4192106bce6706b47e.
Thanks @vpirogov - I can confirm, I'm looking at a very re-assuring shade of green on our weekly testing now!
Glad to hear that :)