Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU checkpoint compilation failed. #55

Open
GYDmedwin opened this issue Dec 11, 2024 · 0 comments
Open

GPU checkpoint compilation failed. #55

GYDmedwin opened this issue Dec 11, 2024 · 0 comments

Comments

@GYDmedwin
Copy link

Hi,
I tried to compile the GPU checkpoint module using make install-gpu.

However, the compilation always fails. The problem I'm facing now is a library link problem:

g++ -std=gnu++11 -fpermissive -g -lncurses -lpthread -lm -lz -ldl -lexpat -llzma -lmpfr -Wl,--dynamic-list=utils/proc-service.list -o cricket build/cricket-cr.o build/cricket-device.o build/cricket-elf.o build/cricket-file.o build/cricket-heap.o build/cricket-register.o build/cricket-stack.o build/cricket-util.o build/gdb.o build/log.o build/main.o ../submodules/lib/libgdb.a ../submodules/lib/libbfd.a ../submodules/lib/libiberty.a ../submodules/lib/libreadline.a ../submodules/lib/libdecnumber.a ../submodules/lib/libcudacore.a ../submodules/lib/libopcodes.a ../submodules/lib/libgnu.a
/usr/bin/ld: ../submodules/lib/libgdb.a(tui-win.o): warning: relocation against curscr' in read-only section .text'
/usr/bin/ld: ../submodules/lib/libgdb.a(target-float.o): in function mpfr_float_ops::gdb_mpfr::gdb_mpfr(mpfr_float_ops::gdb_mpfr const&)': /data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1213: undefined reference to mpfr_init2'
/usr/bin/ld: /data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1213: undefined reference to mpfr_init2' /usr/bin/ld: ../submodules/lib/libgdb.a(target-float.o): in function mpfr_float_ops::from_target(floatformat const*, unsigned char const*, mpfr_float_ops::gdb_mpfr&) const':
/data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1284: undefined reference to mpfr_add' /usr/bin/ld: ../submodules/lib/libgdb.a(target-float.o): in function mpfr_float_ops::gdb_mpfr::~gdb_mpfr()':
/data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1218: undefined reference to mpfr_clear' /usr/bin/ld: /data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1218: undefined reference to mpfr_clear'
/usr/bin/ld: ../submodules/lib/libgdb.a(target-float.o): in function mpfr_float_ops::from_target(floatformat const*, unsigned char const*, mpfr_float_ops::gdb_mpfr&) const': /data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1296: undefined reference to mpfr_set_zero'
/usr/bin/ld: ../submodules/lib/libgdb.a(target-float.o): in function mpfr_float_ops::gdb_mpfr::gdb_mpfr(mpfr_float_ops::gdb_mpfr const&)': /data/guyida/cricket/submodules/cuda-gdb/build/gdb/../../gdb/target-float.c:1213: undefined reference to mpfr_init2'
/usr/bin/ld: ../submodules/lib/libgdb.a(target-float.o): in function `mpfr_float_ops::from_target(floatformat const*, unsigned char const*, mpfr_float_ops::gdb_mpfr&) const':
... ...

I checked the libraries in /usr/lib/x86_64 and found that all the required libraries are there, so I guess it may be a library version problem.

Could you please provide the versions of the dependent libraries you compiled with? Or is there any other way (Docker?) to test the checkpoint/restore function?

THAKS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant