google / highway

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

Split hwy/tests/logical_test.cc #2240

Closed malaterre closed 3 weeks ago

malaterre commented 3 weeks ago

It would be nice to split hwy/tests/logical_test.cc into mutiple TUs. It appears to break system with gcc-13/-02 and limited amount of memory:


FAILED: CMakeFiles/logical_test.dir/hwy/tests/logical_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 -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/logical_test.dir/hwy/tests/logical_test.cc.o -MF CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o.d -o CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o -c /<<PKGBUILDDIR>>/hwy/tests/logical_test.cc

as: out of memory allocating 4 bytes after a total of 3993939968 bytes

as: out of memory allocating 4064 bytes after a total of 3993939968 bytes

ref:

jan-wassenberg commented 3 weeks ago

Sure, we can do that :) Thanks for the heads-up.