You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build SolveXcts on ocean with gcc 11.3.0 Release, compilation succeeds but attempting to link generates this error that repeats until the process is killed:
[100%] Linking CXX executable ../../../../bin/SolveXcts
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o(.debug_info+0xd): error: relocation overflow: reference to local symbol 10 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o(.debug_info+0x12): error: relocation overflow: reference to local symbol 10 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o(.debug_info+0x16): error: relocation overflow: reference to local symbol 10 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o(.debug_info+0x65): error: relocation overflow: reference to local symbol 10 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o(.debug_info+0x72): error: relocation overflow: reference to local symbol 10 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/conv-static.o
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)(.debug_info+0xd): error: relocation overflow: reference to local symbol 11 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)(.debug_info+0x12): error: relocation overflow: reference to local symbol 11 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)(.debug_info+0x16): error: relocation overflow: reference to local symbol 11 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)
/opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)(.debug_info+0x1f): error: relocation overflow: reference to local symbol 11 in /opt/ohpc/pub/apps/charm_7.0.0_gnu11_022324/verbs-linux-x86_64-smp-gcc/lib/libconverse.a(commitid.C.o)
CMakeFiles/SolveXcts.dir/SolveXcts.cpp.o(.debug_info+0x1a4e): error: relocation overflow: reference to local symbol 19509 in CMakeFiles/SolveXcts.dir/SolveXcts.cpp.o
CMakeFiles/SolveXcts.dir/SolveXcts.cpp.o(.debug_info+0x1d36): error: relocation overflow: reference to local symbol 19509 in CMakeFiles/SolveXcts.dir/SolveXcts.cpp.o
CMakeFiles/SolveXcts.dir/SolveXcts.cpp.o(.debug_info+0x1d4f): error: relocation overflow: reference to local symbol 19509 in CMakeFiles/SolveXcts.dir/SolveXcts.cpp.o
.
.
.
A temporary workaround to get things to build successfully is to use -D DEBUG_SYMBOLS=OFF in the cmake command in spectre_run_cmake, which also reduces peak RAM during compilation.
Memory usage during compiling and linking is very high when debug symbols are on (default setting for Release). Here is the memory usage and time for building with and without debug symbols:
Process | Debug symbols | Peak RAM (GB) | Time (mm:ss)
-----------------------------------------------------------
Compiling On 46.7 22:32
Off 11.2 11:37
Linking On (killed*) 15.1* 00:16*
Off 2.0 00:09
*killed when linking error starts
Size of SolveXcts.cpp.o with debug symbols: 4.69 GB
Size of SolveXcts.cpp.o without debug symbols: 0.45 GB
Here is the full command that was used to compile SolveXctswith debug symbols (-g):
The text was updated successfully, but these errors were encountered:
nilsvu
changed the title
SolveXcts fails to link on ocean and has high memory usage during compilation
SolveXcts with debug symbols has high memory usage during compilation
Jul 12, 2024
Yes also on CaltechHPC I've had this problem and had to set DEBUG_SYMBOLS=OFF. I don't think the SolveXcts executable is doing anything unreasonable or goes beyond what we intend to support with the DataBox, so as you mentioned the underlying issue is #5472 and IMO it's fairly high priority to fix.
Related to #5472
When attempting to build
SolveXcts
on ocean withgcc 11.3.0
Release, compilation succeeds but attempting to link generates this error that repeats until the process is killed:A temporary workaround to get things to build successfully is to use
-D DEBUG_SYMBOLS=OFF
in thecmake
command inspectre_run_cmake
, which also reduces peak RAM during compilation.Memory usage during compiling and linking is very high when debug symbols are on (default setting for Release). Here is the memory usage and time for building with and without debug symbols:
Here is the full command that was used to compile
SolveXcts
with debug symbols (-g
):And here is the full command that was used to compile
SolveXcts
without debug symbols (-DDEBUG_SYMBOLS=OFF
used incmake
command removes-g
):The text was updated successfully, but these errors were encountered: