Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669638 - media-libs/glm-0.9.9.2 fails tests test-perf_matrix_div test-perf_matrix_inverse test-perf_matrix_mul
Summary: media-libs/glm-0.9.9.2 fails tests test-perf_matrix_div test-perf_matrix_inve...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 678342
  Show dependency tree
 
Reported: 2018-10-25 20:59 UTC by eroen
Modified: 2019-09-07 13:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs/glm-0.9.9.2:20181025-205038.log (glm-0.9.9.2:20181025-205038.log,437.24 KB, text/plain)
2018-10-25 20:59 UTC, eroen
Details
/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/Testing/Temporary/LastTest.log (LastTest.log,109.78 KB, text/plain)
2018-10-25 21:13 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2018-10-25 20:59:10 UTC
Created attachment 553048 [details]
media-libs/glm-0.9.9.2:20181025-205038.log

Start 145: test-gtx_wrap
142/151 Test #145: test-gtx_wrap ..........................   Passed    0.01 sec
        Start 146: test-perf_matrix_div
143/151 Test #146: test-perf_matrix_div ...................***Exception: SegFault  0.26 sec
        Start 147: test-perf_matrix_inverse
144/151 Test #147: test-perf_matrix_inverse ...............***Exception: SegFault  0.24 sec
        Start 148: test-perf_matrix_mul
145/151 Test #148: test-perf_matrix_mul ...................***Exception: SegFault  0.21 sec
        Start 149: test-perf_matrix_mul_vector
146/151 Test #149: test-perf_matrix_mul_vector ............   Passed    0.09 sec
        Start 150: test-perf_matrix_transpose
147/151 Test #150: test-perf_matrix_transpose .............   Passed    0.23 sec
        Start 151: test-perf_vector_mul_matrix
148/151 Test #151: test-perf_vector_mul_matrix ............   Passed    0.07 sec
149/151 Test  #33: test-core_func_integer_bit_count .......   Passed    4.14 sec
150/151 Test  #81: test-gtc_round .........................   Passed    4.52 sec
151/151 Test  #68: test-gtc_bitfield ......................   Passed    8.85 sec

98% tests passed, 3 tests failed out of 151

Total Test time (real) =   9.17 sec

The following tests FAILED:
	146 - test-perf_matrix_div (SEGFAULT)
	147 - test-perf_matrix_inverse (SEGFAULT)
	148 - test-perf_matrix_mul (SEGFAULT)
Errors while running CTest
 * ERROR: media-libs/glm-0.9.9.2::gentoo failed (test phase):
 *   Tests failed. When you file a bug, please attach the following file: 
 * 	/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/Testing/Temporary/LastTest.log
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_test
 *   environment, line 2767:  Called cmake-utils_src_test
 *   environment, line  898:  Called die
 * The specific snippet of code:
 *               die "Tests failed. When you file a bug, please attach the following file: 
 * 	${BUILD_DIR}/Testing/Temporary/LastTest.log";


eroen@occam ~ $ dmesg | tail -n 3
[140925.171323] traps: test-perf_matri[371413] general protection ip:5631d235fdea sp:7fffe270d640 error:0 in test-perf_matrix_div[5631d235b000+7000]
[140925.409400] traps: test-perf_matri[371418] general protection ip:564eedfb1fb1 sp:7ffca93b4960 error:0 in test-perf_matrix_inverse[564eedfae000+6000]
[140925.623861] traps: test-perf_matri[371419] general protection ip:55b6925416be sp:7ffe0ae6b100 error:0 in test-perf_matrix_mul[55b69253e000+6000]
Comment 1 eroen 2018-10-25 21:12:19 UTC
occam ~ # gdb -q --batch -ex 'run' -ex 'bt full' /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf/test-perf_matrix_mul
mat2 * mat2:
- SISD: 258 us
- SIMD: 327 us
dmat2 * dmat2:
- SISD: 660 us
- SIMD: 658 us
mat3 * mat3:
- SISD: 1031 us
- SIMD: 1046 us
dmat3 * dmat3:
- SISD: 2291 us
- SIMD: 1810 us
mat4 * mat4:
- SISD: 2221 us
- SIMD: 1398 us
dmat4 * dmat4:
- SISD: 3463 us

Program received signal SIGSEGV, Segmentation fault.
0x00005555555596be in test_mat_mul_mat<glm::mat<4, 4, double, (glm::qualifier)3> > (O=std::vector of length 100000, capacity 100000 = {...}, I=Python Exception <class 'gdb.error'> value has been optimized out: 
<synthetic pointer>, M=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/avxintrin.h:142
142	  return (__m256d) ((__v4df)__A + (__v4df)__B);
#0  0x00005555555596be in test_mat_mul_mat<glm::mat<4, 4, double, (glm::qualifier)3> > (O=std::vector of length 100000, capacity 100000 = {...}, I=Python Exception <class 'gdb.error'> value has been optimized out: 
<synthetic pointer>, M=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/avxintrin.h:142
        i = <optimized out>
        n = 100000
#1  launch_mat_mul_mat<glm::mat<4, 4, double, (glm::qualifier)3> > (Samples=100000, Scale=..., Transform=..., O=std::vector of length 100000, capacity 100000 = {...}) at /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2/test/perf/perf_matrix_mul.cpp:36
        I = <optimized out>
        t1 = <optimized out>
        t2 = <optimized out>
        I = <optimized out>
        t1 = <optimized out>
        t2 = <optimized out>
        i = <optimized out>
#2  comp_mat4_mul_mat4<glm::mat<4, 4, double, (glm::qualifier)0>, glm::mat<4, 4, double, (glm::qualifier)3> > (Samples=100000) at /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2/test/perf/perf_matrix_mul.cpp:108
        Error = 0
        Transform = <optimized out>
        Scale = <optimized out>
        SISD = std::vector of length 100000, capacity 100000<...>
        SIMD = std::vector of length 100000, capacity 100000 = {{value = {{{{x = <...>
#3  0x000055555555673a in main () at /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2/test/perf/perf_matrix_mul.cpp:142
        Error = 0
occam ~ #
Comment 2 eroen 2018-10-25 21:13:09 UTC
Created attachment 553050 [details]
/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/Testing/Temporary/LastTest.log
Comment 3 eroen 2018-10-25 21:14:18 UTC
eroen@occam ~ $ emerge --info '=media-libs/glm-0.9.9.2::gentoo'
Portage 2.3.51 (python 3.7.0-final-0, default/linux/amd64/17.0/hardened, gcc-8.2.0, glibc-2.27-r6, 4.18.7-gentoo-o0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.7-gentoo-o0-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.6
KiB Mem:     7999296 total,   2525356 free
KiB Swap:   16777212 total,  16776432 free
Timestamp of repository gentoo: Thu, 25 Oct 2018 12:30:01 +0000
Head commit of repository gentoo: 66678e8f6caa8761e709e4d8119e947aa4e056f1
Timestamp of repository eroen: Sun, 30 Oct 2016 21:58:42 +0000
Head commit of repository sapher: 9ef31d0bf6a902342746fb03a445d4f8b7ddabef

Head commit of repository wiktorb: 2436f2d433769b4a7c69a4088dbc5acd2645c38c

Head commit of repository gentoo-snappy: 0ea79c799ebe1bc6cd924b9dd707b710eea24e83

Head commit of repository stuff: 1b4eeb31eb3b388e3130a7955410cdd748bcc494

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
ccache version 3.5 [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/ccache:          3.5::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.39.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            6.4.0-r4::gentoo, 7.3.0-r5::gentoo, 8.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

crossdev
    location: /var/lib/portage/crossdev
    masters: gentoo gamerlay eroen

eroen
    location: /usr/local/portage
    masters: gentoo
    priority: 0

sapher
    location: /var/lib/overlays/sapher
    sync-type: git
    sync-uri: https://github.com/apinsard/sapher-overlay.git
    masters: gentoo

wiktorb
    location: /var/lib/overlays/wiktorb
    sync-type: git
    sync-uri: https://github.com/wiktor-b/overlay.git
    masters: gentoo

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

enlightenment
    location: /var/lib/layman/enlightenment
    masters: gentoo
    priority: 50

flora
    location: /var/lib/layman/flora
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 50

gentoo-snappy
    location: /usr/local/portage/gentoo-snappy
    sync-type: git
    sync-uri: https://github.com/zyga/gentoo-snappy.git
    masters: gentoo
    priority: 50

glc
    location: /var/lib/layman/glc
    masters: gentoo
    priority: 50

hardened-development
    location: /var/lib/layman/hardened-development
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

hasufell
    location: /var/lib/layman/hasufell
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

laurentb
    location: /var/lib/layman/laurentb
    masters: gentoo
    priority: 50

roslin
    location: /var/lib/layman/roslin
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: git
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

toolchain
    location: /var/lib/layman/toolchain
    masters: gentoo
    priority: 50

v-fox
    location: /var/lib/layman/v-fox
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -pipe -Og -g -gdwarf-4"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -pipe -Og -g -gdwarf-4"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --autounmask --quiet-build --nospinner --verbose-conflicts --verbose-slot-rebuilds"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-log splitdebug strict strict-keepdir test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4 -l10"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa amd64 apng audio audiofile avresample avx bash-completion bdf bluray bzip2 cairo caps cb cdda cdparanoia cdr cjk corefonts crypt cups curl cxx declarative detex device-mapper dga dia djvu dts dvd dvi2tty dvipdfm ebook egl exif fam ffmpeg fftw fits flac fontconfig g3dvl gallium gbm gcrypt gif gimp git glamor glib gmp gnuplot gnutls gold gpm graphics graphviz gs gstreamer gtk gtk3 hardened highlight iconv icu id3tag idn imagemagick imlib inotify iproute2 ipv6 jbig jpeg jpeg2k jpg json kde kde4 kpathsea latex lcms libffi libssh2 libtirpc libv4l luatex lvm lvm2 lzma lzo man metric mikmod mkv mms mmx mng mp3 mpeg mpg123 multilib multimedia musepack ncurses netlink nptl nut ocr odbc offensive ogg opengl openmp openvg optimization optimized-qmake opus pam pango pcre pdf pgf phonon pie png postscript private-headers pstricks pth publishers python3 qt3support qt4 raw readline samba sbsms scanner science sdl seccomp smp sna sndfile speex spell sqlite sse sse2 sse3 sse4 sse41 sse4_1 sse4_2 ssh ssl ssp ssse3 svg t1lib tesseract test theora threads tiff tls truetype udev unicode usb v4l v4l2 vaapi video vorbis vpx webp wmf x264 xanim xattr xcb xcomposite xetex xft xinerama xkb xml xmlpatterns xorg xosd xpm xrandr xtpax xv xvid xvmc xz zlib zsh-completion" ABI_X86="32 64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 avx sse3 ssse3 sse4_1 aes avx mmxext popcnt sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-US en-GB eng" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 ARM BPF X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" POSTGRES_TARGETS="postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby23" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel i965 ilo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

eroen@occam ~ $ emerge -pqv '=media-libs/glm-0.9.9.2::gentoo'
[ebuild     U ] media-libs/glm-0.9.9.2 [0.9.8.5-r1] USE="test" CPU_FLAGS_X86="avx sse2 sse3 -avx2"
Comment 4 Tupone Alfredo gentoo-dev 2018-11-06 21:05:24 UTC
media-libs/glm-0.9.9.3 still suffers from this
Comment 5 ernsteiswuerfel archtester 2018-12-29 12:44:28 UTC
Interesting, ppc/ppc64 fail only one test (bug #673972).

amd64, even when built with CPU_FLAGS_X86="" fails 4 tests on my machine:

145/151 Test #149: test-perf_matrix_mul_vector ............***Failed    0.10 sec
        Start 150: test-perf_matrix_transpose
        Start 151: test-perf_vector_mul_matrix
148/151 Test #146: test-perf_matrix_div ...................***Exception: SegFault  1.12 sec
149/151 Test #148: test-perf_matrix_mul ...................***Exception: SegFault  1.05 sec
150/151 Test #147: test-perf_matrix_inverse ...............***Exception: SegFault  1.05 sec

97% tests passed, 4 tests failed out of 151

Total Test time (real) = 134.28 sec

The following tests FAILED:
	146 - test-perf_matrix_div (SEGFAULT)
	147 - test-perf_matrix_inverse (SEGFAULT)
	148 - test-perf_matrix_mul (SEGFAULT)
	149 - test-perf_matrix_mul_vector (Failed)
Errors while running CTest
Comment 6 Tupone Alfredo gentoo-dev 2019-03-06 14:15:56 UTC
> amd64, even when built with CPU_FLAGS_X86="" fails 4 tests on my machine:

Please test again without avx2.

Consider that -march=haswell or newer enable -mavx2 by default, and so the avx2 USE flag.

So a way to proceed is to remove the avx2 USE flag and add -mno-avx2 to the default CXXFLAGS
Comment 7 Larry the Git Cow gentoo-dev 2019-03-06 19:46:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5c19f7820c56475a0b0b3ee84f913f235949a87

commit c5c19f7820c56475a0b0b3ee84f913f235949a87
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2019-03-06 19:45:56 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2019-03-06 19:46:29 +0000

    media-libs/glm: Disable avx. Remove failing test.
    
    Closes: https://bugs.gentoo.org/669638
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 media-libs/glm/files/glm-0.9.9.2-avx.patch | 30 ++++++++++++++++++++++++++++++
 media-libs/glm/glm-0.9.9.2.ebuild          |  4 +++-
 2 files changed, 33 insertions(+), 1 deletion(-)
Comment 8 Tupone Alfredo gentoo-dev 2019-03-06 19:48:09 UTC
No more segfault, due to avx.

Removed 2 tests that fails when using -O2
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-07 20:42:33 UTC
Not fixed, test-perf_matrix_inverse test-perf_matrix_mul is still failing:

147/149 Testing: test-perf_matrix_mul
147/149 Test: test-perf_matrix_mul
Command: "/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf/test-perf_matrix_mul"
Directory: /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf
"test-perf_matrix_mul" start time: Mar 07 21:22 CET
Output:
----------------------------------------------------------
mat2 * mat2:
- SISD: 259 us
- SIMD: 489 us
dmat2 * dmat2:
- SISD: 491 us
- SIMD: 505 us
mat3 * mat3:
- SISD: 1571 us
- SIMD: 1601 us
dmat3 * dmat3:
- SISD: 11612 us
- SIMD: 1866 us
mat4 * mat4:
- SISD: 3510 us
- SIMD: 3168 us
dmat4 * dmat4:
- SISD: 2875 us
- SIMD: 5260 us
<end of output>
Test time =   0.45 sec
----------------------------------------------------------
Test Failed.
"test-perf_matrix_mul" end time: Mar 07 21:22 CET
"test-perf_matrix_mul" time elapsed: 00:00:00
----------------------------------------------------------


And regarding avx: You should make use of CPU_FLAGS_X86.
Comment 10 Larry the Git Cow gentoo-dev 2019-03-08 08:59:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86f0a723163670d49a8f9f0da6b2060094962061

commit 86f0a723163670d49a8f9f0da6b2060094962061
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2019-03-08 08:58:45 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2019-03-08 08:58:45 +0000

    media-libs/glm: Enabled all tests. Increase the error tolerance
    
    Closes: https://bugs.gentoo.org/669638
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 media-libs/glm/files/glm-0.9.9.2-avx.patch | 42 +++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 9 deletions(-)
Comment 11 Tupone Alfredo gentoo-dev 2019-03-08 09:05:13 UTC
I hope it fixes the test that is failing at you.
Actually the tolerance on the computation was 0.001. To me it should be relative. I increased to pass the test that were failing at me.
From 0.001 to 0.002 in one test
From 0.001 to 0.01 in another test.
I passed the tolerance to 0.01 too fo rthe test that was failing at you :/

For the AVX instruction set, I have not yet analyzed why is failing. I think a gcc bug but not sure. I disabled the usage of intrinsic for the AVX case.

This is an header only package, so I disabled in one of the header, not in the compiler command line, as the compiler is used only for testing.
Comment 12 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-18 16:01:42 UTC
(In reply to Tupone Alfredo from comment #11)
> I hope it fixes the test that is failing at you.
> Actually the tolerance on the computation was 0.001. To me it should be
> relative. I increased to pass the test that were failing at me.
> From 0.001 to 0.002 in one test
> From 0.001 to 0.01 in another test.
> I passed the tolerance to 0.01 too fo rthe test that was failing at you :/
> 
> For the AVX instruction set, I have not yet analyzed why is failing. I think
> a gcc bug but not sure. I disabled the usage of intrinsic for the AVX case.
> 
> This is an header only package, so I disabled in one of the header, not in
> the compiler command line, as the compiler is used only for testing.

Nope :(

98% tests passed, 3 tests failed out of 151

Total Test time (real) =  24.76 sec

The following tests FAILED:
        146 - test-perf_matrix_div (Failed)
        148 - test-perf_matrix_mul (Failed)
        149 - test-perf_matrix_mul_vector (Failed)
Errors while running CTest
 * ERROR: media-libs/glm-0.9.9.2



149/151 Testing: test-perf_matrix_mul_vector
149/151 Test: test-perf_matrix_mul_vector
Command: "/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf/test-perf_matrix_mul_vector"
Directory: /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf
"test-perf_matrix_mul_vector" start time: Mar 18 16:49 CET
Output:
----------------------------------------------------------
mat2 * vec2:
- SISD: 267 us
- SIMD: 285 us
dmat2 * dvec2:
- SISD: 281 us
- SIMD: 348 us
mat3 * vec3:
- SISD: 491 us
- SIMD: 525 us
dmat3 * dvec3:
- SISD: 581 us
- SIMD: 872 us
mat4 * vec4:
- SISD: 848 us
- SIMD: 475 us
dmat4 * dvec4:
- SISD: 1011 us
- SIMD: 7562 us
<end of output>
Test time =   0.43 sec
----------------------------------------------------------
Test Failed.
"test-perf_matrix_mul_vector" end time: Mar 18 16:49 CET
"test-perf_matrix_mul_vector" time elapsed: 00:00:00
----------------------------------------------------------



146/151 Testing: test-perf_matrix_div
146/151 Test: test-perf_matrix_div
Command: "/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf/test-perf_matrix_div"
Directory: /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf
"test-perf_matrix_div" start time: Mar 18 16:49 CET
Output:
----------------------------------------------------------
mat2 / mat2:
- SISD: 1200 us
- SIMD: 1187 us
dmat2 / dmat2:
- SISD: 1196 us
- SIMD: 1216 us
mat3 / mat3:
- SISD: 3738 us
- SIMD: 20286 us
dmat3 / dmat3:
- SISD: 13780 us
- SIMD: 3737 us
mat4 / mat4:
- SISD: 12075 us
- SIMD: 4858 us
dmat4 / dmat4:
- SISD: 20338 us
- SIMD: 30305 us
<end of output>
Test time =   0.64 sec
----------------------------------------------------------
Test Failed.
"test-perf_matrix_div" end time: Mar 18 16:49 CET
"test-perf_matrix_div" time elapsed: 00:00:00
----------------------------------------------------------


148/151 Testing: test-perf_matrix_mul
148/151 Test: test-perf_matrix_mul
Command: "/var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf/test-perf_matrix_mul"
Directory: /var/tmp/portage/media-libs/glm-0.9.9.2/work/glm-0.9.9.2_build/test/perf
"test-perf_matrix_mul" start time: Mar 18 16:49 CET
Output:
----------------------------------------------------------
mat2 * mat2:
- SISD: 508 us
- SIMD: 492 us
dmat2 * dmat2:
- SISD: 676 us
- SIMD: 792 us
mat3 * mat3:
- SISD: 1748 us
- SIMD: 1628 us
dmat3 * dmat3:
- SISD: 2065 us
- SIMD: 2423 us
mat4 * mat4:
- SISD: 14375 us
- SIMD: 3008 us
dmat4 * dmat4:
- SISD: 24909 us
- SIMD: 8476 us
<end of output>
Test time =   0.60 sec
----------------------------------------------------------
Test Failed.
"test-perf_matrix_mul" end time: Mar 18 16:49 CET
"test-perf_matrix_mul" time elapsed: 00:00:00
----------------------------------------------------------
Comment 13 Larry the Git Cow gentoo-dev 2019-03-18 19:27:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6597619ea6640f53e8fd9c538399af3a14c7ba7c

commit 6597619ea6640f53e8fd9c538399af3a14c7ba7c
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2019-03-18 19:26:53 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2019-03-18 19:26:53 +0000

    media-libs/glm: Remove failing test
    
    Closes: https://bugs.gentoo.org/669638
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 media-libs/glm/files/glm-0.9.9.2-avx.patch | 42 +++++++-----------------------
 1 file changed, 9 insertions(+), 33 deletions(-)
Comment 14 eroen 2019-08-12 19:44:43 UTC
This is happening again with media-libs/glm-0.9.9.5

	148 - test-perf_matrix_div (SEGFAULT)
	149 - test-perf_matrix_inverse (SEGFAULT)
	150 - test-perf_matrix_mul (SEGFAULT)
Comment 15 Tupone Alfredo gentoo-dev 2019-09-07 13:39:29 UTC
(In reply to eroen from comment #14)
> This is happening again with media-libs/glm-0.9.9.5
> 
> 	148 - test-perf_matrix_div (SEGFAULT)
> 	149 - test-perf_matrix_inverse (SEGFAULT)
> 	150 - test-perf_matrix_mul (SEGFAULT)

Please open another bug with more info (e.g. your configuration)