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

undefined symbol when loading libth_codegeex.so #14

Open
merlinarer opened this issue Apr 25, 2023 · 1 comment
Open

undefined symbol when loading libth_codegeex.so #14

merlinarer opened this issue Apr 25, 2023 · 1 comment

Comments

@merlinarer
Copy link

I try to build codegeex-fastertransformer in triton container fo version 22.09, and I met the same error with this issue:
/build/lib/libth_codegeex.so: undefined symbol: _ZN17fastertransformer16ParallelCodegeexIfE7forwardEPSt13unordered_mapISsNS_6TensorESt4hashISsESt8equal_toISsESaISt4pairIKSsS3_EEEPKSC_PKNS_22ParallelCodegeexWeightIfEE
I found it is because the following function is not well built:
fastertransformer::ParallelCodegeex<float>::forward(std::unordered_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, fastertransformer::Tensor, std::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, fastertransformer::Tensor> > >*, std::unordered_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, fastertransformer::Tensor, std::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, fastertransformer::Tensor> > > const*, fastertransformer::ParallelCodegeexWeight<float> const*)
But I do not know how to solve it. Is there any advice for me ?

@yoyopdc
Copy link

yoyopdc commented May 11, 2023

I think you can type ldd -r /build/lib/libth_codegeex.so to see who did not link to libth_codegeex.so and add it to cmake

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

2 participants