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

Add nvcc options #8

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Add nvcc options #8

merged 1 commit into from
Sep 14, 2023

Conversation

keyasuda
Copy link
Contributor

This PR is to avoid following errors during installation with cuBLAS:

linking shared-object llama_cpp/llama_cpp.so
/usr/bin/ld: ggml-cuda.o: relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:265: llama_cpp.so] Error 1

According to this article https://forums.developer.nvidia.com/t/shared-library-creation/4776/10 this seems to be needed when building .so.

verification environment:

  • Ubuntu 20.04
  • nvcc V12.2.140
  • NVIDIA RTX 3060

Copy link
Owner

@yoshoku yoshoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@yoshoku yoshoku merged commit f23f599 into yoshoku:main Sep 14, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants