sci-libs/caffe2-2.5.1-r3 fails to compile with following error: FAILED: caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/CPUBlas.cpp.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DAT_PER_OPERATOR_HEADERS -DCAFFE2_BUILD_MAIN_LIB -DFLASHATTENTION_DISABLE_ALIBI -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -DHAVE_MALLOC_USA BLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx -DPROTOBUF_USE_DLLS -DUSE_DISTR IBUTED -DUSE_EXTERNAL_MZCRC -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1_build/aten/src -I/var/tmp/port age/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1_build -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1 -I /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/nlohmann -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/torch/csrc/api -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3 /work/pytorch-2.5.1/torch/csrc/api/include -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/caffe2/aten/src/TH -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1_bui ld/caffe2/aten/src/TH -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1_build/caffe2/aten/src -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1_build/caffe2/../aten/ src -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/torch/csrc -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/third_party/miniz-2.1.0 -I/usr/include/kineto -I/v ar/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/third_party/cpp-httplib -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/.. -I/var/tmp/portage/sci-libs/ caffe2-2.5.1-r3/work/pytorch-2.5.1/c10/.. -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/quantized/cpu/qnnpack/include -I/var/tmp/portage/sci-libs/caffe2- 2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/quantized/cpu/qnnpack/src -I/var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/third_party/flatbuffers/include -isystem /var/tmp/por tage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/cmake/../third_party/tensorpipe/third_party/libuv/include -isystem /opt/cuda/include -isystem /usr/include/eigen3 -isystem /usr/include/oneapi /dnnl -isystem /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/INTERFACE -isystem /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/third_party/nlohmann/include -isyst em /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/caffe2 -O3 -pipe -march=rocketlake -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DUSE_FBGEMM -DUSE _PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -Wall -Wextra -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field- initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno- error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overfl ow -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -std=gnu++17 -fPIC -DTORCH_USE_LIBUV -Wall -Wextra -Wdeprecated -Wno-unused-parameter -Wno-missing-field-initializers -Wno-type-limi ts -Wno-array-bounds -Wno-unknown-pragmas -Wno-strict-overflow -Wno-strict-aliasing -Wunused-function -Wunused-variable -Wunused-but-set-variable -Wno-maybe-uninitialized -fvisibility=hidden -fopenmp -MD -MT caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/CPUBlas.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/CPUBlas.cpp.o.d -o caffe2/CMakeFiles/torch_c pu.dir/__/aten/src/ATen/native/CPUBlas.cpp.o -c /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp In file included from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/core/IListRef.h:631, 07:25:16 [474/1933] from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/DeviceGuard.h:3, from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1_build/aten/src/ATen/ops/view.h:6, from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/ExpandUtils.h:6, from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/LinearAlgebraUtils.h:8, from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/mkldnn/Matmul.h:5, from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:4: /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/core/IListRef_inl.h: In static member function ‘static c10::detail::IListRefConstRef<at::OptionalTensorRef> c10::det ail::IListRefTagImpl<c10::IListRefTag::Boxed, at::OptionalTensorRef>::iterator_get(const c10::List<std::optional<at::Tensor> >::const_iterator&)’: /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/core/IListRef_inl.h:171:17: warning: possibly dangling reference to a temporary [-Wdangling-reference] 171 | const auto& ivalue = (*it).get(); | ^~~~~~ /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/core/IListRef_inl.h:171:35: note: the temporary was destroyed at the end of the full expression ‘(& it)->c10::impl:: ListIterator<std::optional<at::Tensor>, __gnu_cxx::__normal_iterator<c10::IValue*, std::vector<c10::IValue> > >::operator*().c10::impl::ListElementReference<std::optional<at::Tensor>, __gnu_c xx::__normal_iterator<c10::IValue*, std::vector<c10::IValue> > >::get()’ 171 | const auto& ivalue = (*it).get(); | ~~~~~~~~~^~ In file included from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:51: /usr/include/oneapi/dnnl/dnnl_ukernel.hpp: At global scope: /usr/include/oneapi/dnnl/dnnl_ukernel.hpp:38:22: error: ‘dnnl_brgemm_t’ was not declared in this scope; did you mean ‘dnnl_stream_t’? 38 | struct handle_traits<dnnl_brgemm_t> { | ^~~~~~~~~~~~~ | dnnl_stream_t /usr/include/oneapi/dnnl/dnnl_ukernel.hpp:38:35: error: template argument 1 is invalid 38 | struct handle_traits<dnnl_brgemm_t> { | ^ /usr/include/oneapi/dnnl/dnnl_ukernel.hpp:45:22: error: ‘dnnl_transform_t’ was not declared in this scope 45 | struct handle_traits<dnnl_transform_t> { | ^~~~~~~~~~~~~~~~ /usr/include/oneapi/dnnl/dnnl_ukernel.hpp:45:38: error: template argument 1 is invalid 45 | struct handle_traits<dnnl_transform_t> { | ^ /usr/include/oneapi/dnnl/dnnl_ukernel.hpp:52:22: error: ‘dnnl_ukernel_attr_params_t’ was not declared in this scope 52 | struct handle_traits<dnnl_ukernel_attr_params_t> { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/oneapi/dnnl/dnnl_ukernel.hpp:52:48: error: template argument 1 is invalid 52 | struct handle_traits<dnnl_ukernel_attr_params_t> { | ^ /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:1012:18: error: ‘brgemm’ in namespace ‘dnnl::ukernel’ does not name a type 1012 | dnnl::ukernel::brgemm brg; | ^~~~~~ /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp: In constructor ‘at::native::cpublas::GemmHelper::GemmHelper(int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, c10::ScalarType, c10::ScalarType, c10::ScalarType, float, float)’: /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:993:5: error: ‘brg’ was not declared in this scope; did you mean ‘brk’? 993 | brg = dnnl::ukernel::brgemm( | ^~~ | brk /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:993:26: error: ‘brgemm’ is not a member of ‘dnnl::ukernel’; did you mean ‘at::native::cpublas::br gemm’? 993 | brg = dnnl::ukernel::brgemm( | ^~~~~~ In file included from /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:2: /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.h:196:16: note: ‘at::native::cpublas::brgemm’ declared here 196 | TORCH_API void brgemm( | ^~~~~~ /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp: In static member function ‘static void at::native::cpublas::Brgemm::call(int64_t, int64_t, int64 _t, int64_t, int64_t, int64_t, float, float, const scalar_t_a*, const scalar_t_b*, scalar_t_c*)’: /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp:1064:22: error: ‘dnnl::ukernel::brgemm’ has not been declared 1064 | dnnl::ukernel::brgemm::release_hw_context(); | ^~~~~~ /var/tmp/portage/sci-libs/caffe2-2.5.1-r3/work/pytorch-2.5.1/aten/src/ATen/native/CPUBlas.cpp: At global scope: ... Reproducible: Always Steps to Reproduce: Update to sci-libs/caffe2-2.5.1-r3 Actual Results: Fails to compile Expected Results: Compiles
Created attachment 912752 [details] build.log
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-13, glibc-2.40-r5, 6.12.1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.12.1-x86_64-11th_Gen_Intel-R-_Core-TM-_i5-11600K_@_3.90GHz-with-glibc2.40 KiB Mem: 65654944 total, 47576332 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 30 Nov 2024 03:30:00 +0000 Head commit of repository gentoo: 02fc58c7c363a44a3d8ba718935e83050fb26294 sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p3) 2.43.1 ccache version 4.10.2 [enabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.31.1::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.6.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo, 3.13.0-r100::gentoo dev-lang/rust: 1.77.1-r100::gentoo, 1.81.0-r100::gentoo, 1.82.0-r100::gentoo dev-util/ccache: 4.10.2-r1::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.40::gentoo sys-apps/systemd: 256.8::gentoo sys-devel/binutils: 2.43-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 18.1.8-r6::gentoo, 19.1.4::gentoo sys-devel/gcc: 11.5.0::gentoo, 12.5.9999::gentoo, 13.4.9999::gentoo, 14.3.9999::gentoo, 15.0.9999::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo, 19.1.4::gentoo sys-devel/llvm: 17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.4::gentoo sys-kernel/linux-headers: 6.11::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 mxfm location: /var/db/repos/mxfm masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -pipe -march=rocketlake -flto=6" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" 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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O3 -pipe -march=rocketlake -flto=6" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O3 -pipe -march=rocketlake -flto=6" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O3 -pipe -march=rocketlake -flto=6" GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j10 -l95" PKGDIR="/var/cache/binpkgs" 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" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads quadmath" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="d3d12 vmware intel nvidia i915 i965 fbdev vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS [ebuild U ] sci-libs/caffe2-2.5.1-r3 [2.4.1-r4] USE="cuda distributed fbgemm nnpack numpy onednn opencl openmp qnnpack xnnpack -flash -gloo -mkl -mpi -openblas -rocm" AMDGPU_TARGETS="gfx90a gfx906 gfx908 gfx942 gfx1030 gfx1100 -gfx803 -gfx900 -gfx940 -gfx941 -gfx1010 -gfx1011 -gfx1012 -gfx1031 -gfx1101 -gfx1102" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
May I know which version of oneDNN you used to build caffe2
I can confirm that it compiles successfully when the onednn useflag is disabled, it seems to be a problem with onednn integration.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9b4bf906b164566e88e17b76b37030fd83240d commit 3e9b4bf906b164566e88e17b76b37030fd83240d Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2024-12-10 13:26:34 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-12-10 13:27:07 +0000 dev-libs/oneDNN: enable ukernel Closes: https://bugs.gentoo.org/945391 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> dev-libs/oneDNN/Manifest | 4 ++-- dev-libs/oneDNN/{oneDNN-3.5.2.ebuild => oneDNN-3.5.3.ebuild} | 1 + dev-libs/oneDNN/{oneDNN-3.6.1.ebuild => oneDNN-3.6.2.ebuild} | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-)
(In reply to Tupone Alfredo from comment #3) > May I know which version of oneDNN you used to build caffe2 [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for dev-libs/oneDNN-3.6.2: U I - - cblas : Use virtual/cblas for sgemm routines - - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally - - mkl : Use sci-libs/mkl for sgemm routines + + openmp : Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with USE="openmp" - - static-libs : Build static versions of dynamic libraries as well - - test : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently) btw, it fails to compile with 3.6.2 too - the last commit didn't fix the issue for me.
> btw, it fails to compile with 3.6.2 too - the last commit didn't fix the > issue for me. Can you try oneDNN-3.5.3 and attach the build.log if it will fail again?
More information. Yes, I can compile if oneDNN use flag is disabled, but I cannot link because of fbgemm link errors (due to using gcc13 system-wide while nvidia-cuda-toolkit and similar stuff requires gcc12). If I disable fbgemm I can compile and link successfully. I will close this issue since the solution works for me.