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

Install Error #46

Open
jhss opened this issue Dec 6, 2024 · 5 comments
Open

Install Error #46

jhss opened this issue Dec 6, 2024 · 5 comments

Comments

@jhss
Copy link

jhss commented Dec 6, 2024

While following your guide line, I got the following error when I run pip install -e .

/workspace/nunchaku/third_party/spdlog/include/spdlog/fmt/bundled/format.h(4449): error: a literal operator template must have atemplate parameter list equivalent to "<char ...>"
        template <detail_exported::fixed_string Str> constexpr auto operator""_a() {
                                                                    ^

/workspace/nunchaku/src/common.h(41): error: call to consteval function "std::source_location::current" did not produce a valid constant expression
        inline cudaError_t checkCUDA(cudaError_t retValue, const std::source_location location = std::source_location::current()) {
                                                                                                                              ^
/root/miniconda3/envs/nunchaku/lib/gcc/x86_64-conda-linux-gnu/11.4.0/include/c++/source_location(59): note #2703-D: cannot call non-constexpr function "__builtin_source_location" (declared implicitly)
            current(__builtin_ret_type __p = __builtin_source_location()) noexcept
                                             ^

/workspace/nunchaku/src/common.h(48): error: call to consteval function "std::source_location::current" did not produce a valid constant expression
        inline cublasStatus_t checkCUBLAS(cublasStatus_t retValue, const std::source_location location = std::source_location::current()) {
                                                                                                                                      ^
/root/miniconda3/envs/nunchaku/lib/gcc/x86_64-conda-linux-gnu/11.4.0/include/c++/source_location(59): note #2703-D: cannot call non-constexpr function "__builtin_source_location" (declared implicitly)
            current(__builtin_ret_type __p = __builtin_source_location()) noexcept
                                             ^

How can I solve this?

@lmxyy
Copy link
Collaborator

lmxyy commented Dec 8, 2024

Could you provide some hardware and system information? What GPU are you using?

@sqhuang
Copy link

sqhuang commented Dec 9, 2024

same error here
gcc 11.2.0
a6000 gpu

Could you provide some hardware and system information? What GPU are you using?

@lmxyy
Copy link
Collaborator

lmxyy commented Dec 9, 2024

It should work. @sxtyzhangzk Could you take a look?

@jhss
Copy link
Author

jhss commented Dec 10, 2024

My hardware spec is as follows:

GPU: RTX 3090
gcc/g++: 11.4
nvcc: 12.1
Nvidia Driver: 535.183.01

@sqhuang
Copy link

sqhuang commented Dec 10, 2024

I update nvcc to 12.6 and the error disappeared

same error here gcc 11.2.0 a6000 gpu

Could you provide some hardware and system information? What GPU are you using?

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

3 participants