Fix cuda compilation#1128
Conversation
Fix: Issue with CUBLAS compilation error due to missing `-fPIC` flag
Fix: Issue with CUBLAS compilation error
|
Hi @slaren is there any workaround for cmake cublas fpic? |
|
@hlhr202 did you set LLAMA_SHARED ? |
@Green-Sky this will result to another error |
|
what if you have |
I may try dynamically linking later since I am statically linking llama to rust program, so currently I cant turn off LLAMA_STATIC... |
|
@Green-Sky Thanks for your suggestion. I v tried shared lib and it works properly. but still if there is a statically linking method, it would be convinient for us to distribute downstream applications. |
line 65 |
* Fix: Issue with CUBLAS compilation error due to missing -fPIC flag --------- Co-authored-by: B1gM8c <89020353+B1gM8c@users.noreply.github.com>
* Fix: Issue with CUBLAS compilation error due to missing -fPIC flag --------- Co-authored-by: B1gM8c <89020353+B1gM8c@users.noreply.github.com>
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>

Continued from #1127. The
-Wno-pedanticis necessary to avoid awarning: style of line directive is a GCC extensionfor every single line in the compilation.