Repository navigation
Description
When I try to compile a debug version, I encounter the following error. How can I resolve this issue?
The command I used for compilation is as follows
cmake -D CMAKE_BUILD_TYPE=Debug -D ENABLE_FP8=OFF && make -j
_/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o: in function _init': (.init+0xb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol gmon_start'
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o: in function deregister_tm_clones': crtstuff.c:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against .tm_clone_table'
crtstuff.c:(.text+0xa): relocation truncated to fit: R_X86_64_PC32 against symbol __TMC_END__' defined in .nvFatBinSegment section in ../../lib/libtransformer-shared.so crtstuff.c:(.text+0x16): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol _ITM_deregisterTMCloneTable'
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o: in function register_tm_clones': crtstuff.c:(.text+0x33): relocation truncated to fit: R_X86_64_PC32 against .tm_clone_table'
crtstuff.c:(.text+0x3a): relocation truncated to fit: R_X86_64_PC32 against symbol __TMC_END__' defined in .nvFatBinSegment section in ../../lib/libtransformer-shared.so crtstuff.c:(.text+0x57): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol _ITM_registerTMCloneTable'
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o: in function __do_global_dtors_aux': crtstuff.c:(.text+0x76): relocation truncated to fit: R_X86_64_PC32 against .bss'
crtstuff.c:(.text+0x81): relocation truncated to fit: R_X86_64_GOTPCREL against symbol __cxa_finalize@@GLIBC_2.2.5' defined in .text section in /lib/x86_64-linux-gnu/libc.so.6 crtstuff.c:(.text+0x8e): relocation truncated to fit: R_X86_64_PC32 against symbol __dso_handle' defined in .data.rel.local section in /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o
crtstuff.c:(.text+0x9e): additional relocation overflows omitted from the output
../../lib/libtransformer-shared.so: PC-relative offset overflow in PLT entry for `_ZN17fastertransformer33generic_mixed_gemm_kernelLauncherI6__halfN7cutlass15integer_subbyteILi4ELb0EEENS2_4arch4Sm80ENS_20EpilogueOpBiasFtGeluENS2_4gemm9GemmShapeILi32ELi128ELi64EEENS9_ILi32ELi32ELi64EEELi3EEEvPKT_PKT0_SE_SE_PSC_iiiNS_17CutlassGemmConfigEPcmP11CUstream_stPi'
collect2: error: ld returned 1 exit status
make[2]: *** [_deps/repo-ft-build/CMakeFiles/transformer-shared.dir/build.make:859: lib/libtransformer-shared.so] Error 1
make[2]: Leaving directory '/workspace/build/fastertransformer_backend/dbuild'
make[1]: *** [CMakeFiles/Makefile2:1760: deps/repo-ft-build/CMakeFiles/transformer-shared.dir/all] Error 2
Activity
zhang-ge-hao commentedon May 4, 2023
similar question #557
hongqing1986 commentedon May 4, 2023
It seems to be a completely different issue. My current problem is the error that occurs during the compilation of the debug version, whereas what you mentioned is a runtime error after the debug version has been compiled.
sleepwalker2017 commentedon May 6, 2023
hello did you solved it? I got the same problem
sleepwalker2017 commentedon May 8, 2023
@byshiue could you help solve the bug when compiling the debug version? thank you!
varun-cohere commentedon Jul 6, 2023
I have a similar issue. is it resolved?
ryxli commentedon Jul 8, 2023
Quick workaround can maybe try setting -DBUILD_CUTLASS_MIXED_GEMM=OFF, or pass -host-linker-script flag to cuda compiler for cuda > 11.4. If still further relocation truncation maybe passing -mcmodel to gnu compiler would work, you can try testing it out and see if it builds (in my experience the debug builds takes an extraordinary amount of time to finish)