google / highway

Performance-portable, length-agnostic SIMD with runtime dispatch
Apache License 2.0
3.95k stars 305 forks source link

Split mul_test #2254

Closed malaterre closed 1 week ago

malaterre commented 1 week ago

On system with limited amount of memory mul_test cannot be compiled with O3 compilation flags:

Would it be possible to split mul_test into multipls TUs ? Thanks (again)

For ref:

FAILED: CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o 
/usr/bin/c++ -DHWY_SHARED_DEFINE -DTOOLCHAIN_MISS_ASM_HWCAP_H -I"/<<PKGBUILDDIR>>" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -fcf-protection -DHWY_BROKEN_EMU128=0 -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -Werror -DHWY_IS_TEST=1 -DGTEST_HAS_PTHREAD=1 -MD -MT CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o -MF CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o.d -o CMakeFiles/mul_test.dir/hwy/tests/mul_test.cc.o -c '/<<PKGBUILDDIR>>/hwy/tests/mul_test.cc'

cc1plus: out of memory allocating 1121400 bytes after a total of 257089536 bytes
jan-wassenberg commented 1 week ago

Sure, coming up :) Splitting out FMA for now, please let me know if that's not enough.