Re: 2025-08-07 Meeting Notes
Hi,
2025年8月8日(金) 2:13 Tim Flink <tflink@tirfa.com>:
>
> These are the notes that I attempted to take during today's meeting. Please post corrections if I misunderstood or missed something that was discussed.
>
> Tim
> ----------
>
> ## migraphx
> utkarsh has been working on this package
>
> Problem: when compiling, very high memory usage. compiling with llvm-19 works, building with gcc in debuild causes memory issues.
>
> To repoduce:
>
> * `git clone https://salsa.debian.org/rocm-team/migraphx.git`
> * `cd migraphx`
> * `uscan --force-download --download-current-version`
> * `debuild -us -uc`
> * This will fail @ 33% .. RAM usage (16/16GB full)
> * using make to build instead of debuild does complete
> * it segfaults at around 30% completion in debuild
> * uktarsh's attempts to build for Fedora and Gentoo in containers has not had the same problem
>
> suggestions:
> * `DEB_BUILD OPTION` `S=parallel=N`
> * has been tried, did not help
>
> No conclusion here, folks will need to dig into it more and follow up later
I'm not sure but, It seems that it always cause segv when compiling
with migraphx/src/rewrite_gelu.cpp.
(it can be reproduced with export DEB_BUILD_OPTIONS = parallel=1 )
Does that help to dig it further more?
[ 2%] Building CXX object src/CMakeFiles/migraphx.dir/rewrite_gelu.cpp.o
cd /build/migraphx/migraphx/obj-x86_64-linux-gnu/src && /usr/bin/c++
-DMIGRAPHX_CXX_COMPILER=\"/usr/bin/c++\" -DMIGRAPHX_HAS_EXECUTORS=0
-Dmigraphx_EXPORTS
-I/build/migraphx/migraphx/obj-x86_64-linux-gnu/src/include
-I/build/migraphx/migraphx/src/include -g -O2
-ffile-prefix-map=/build/migraphx/migraphx=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security
-fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=c++17 -Wall
-Wextra -Wcomment -Wendif-labels -Wformat -Winit-self -Wreturn-type
-Wsequence-point -Wswitch -Wtrigraphs -Wundef -Wuninitialized
-Wunreachable-code -Wno-deprecated-pragma -Wunused -Wno-sign-compare
-Wduplicated-branches -Wduplicated-cond -Wno-noexcept-type -Wodr
-Wshift-negative-value -Wshift-overflow=2
-Wno-missing-field-initializers -Wno-maybe-uninitialized -MD -MT
src/CMakeFiles/migraphx.dir/rewrite_gelu.cpp.o -MF
CMakeFiles/migraphx.dir/rewrite_gelu.cpp.o.d -o
CMakeFiles/migraphx.dir/rewrite_gelu.cpp.o -c
/build/migraphx/migraphx/src/rewrite_gelu.cpp
c++: internal compiler error: Segmentation fault signal terminated
program cc1plus
Regards,
Reply to: