Skip to content

How to specify CUDA path? #3

Description

@LHY-HongyangLi

Hi @FindDefinition , I am compiling spconv from source and I notice that PCCM seems hardcode the path of cuda as "/usr/local/cuda/lib64". However, as a non-root user, I can not install cuda at this path. So I wonder how to specify a custom CUDA path?

[775/775] g++ @~/code/Libraries/spconv/build/temp.linux-x86_64-3.8/spconv/build/core_cc/core_cc.cpython-38-x86_64-linux-gnu.so.rsp -lcudart -L "/usr/local/cuda/lib64" -L "/usr/local/cuda/lib64" -shared -o ~/code/Libraries/spconv/build/temp.linux-x86_64-3.8/spconv/build/core_cc/core_cc.cpython-38-x86_64-linux-gnu.so
FAILED: ~/code/Libraries/spconv/build/temp.linux-x86_64-3.8/spconv/build/core_cc/core_cc.cpython-38-x86_64-linux-gnu.so 
g++ @~/code/Libraries/spconv/build/temp.linux-x86_64-3.8/spconv/build/core_cc/core_cc.cpython-38-x86_64-linux-gnu.so.rsp -lcudart -L "/usr/local/cuda/lib64" -L "/usr/local/cuda/lib64" -shared -o ~/code/Libraries/spconv/build/temp.linux-x86_64-3.8/spconv/build/core_cc/core_cc.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Traceback (most recent call last):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions