Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

CUDA_LIBRARY_PATH on Ubuntu #7

Open

Description

@bheisler

Some users of RustaCUDA have found that setting CUDA_LIBRARY_PATH isn't sufficient to allow them to build cuda-sys: bheisler/RustaCUDA#15

I ran into a similar problem while setting up my Travis-CI builds for RustaCUDA on an Ubuntu VM which might be related. If I set CUDA_LIBRARY_PATH to /usr/local/cuda-8.0/targets/x86_64-linux/lib, it could find libcublas.so and libcudart.so but not libcuda.so (which is in /usr/local/cuda-8.0/targets/x86_64-linux/lib/stubs for some reason).

Activity

  1. added a commit that references this issue on Jan 13, 2019
  2. alphastrata commented on Jun 30, 2019

    @alphastrata

    Is there a good solution to this yet?

  3. LutzCle commented on Jun 30, 2019

    @LutzCle
    Contributor

    Setting

    export C_INCLUDE_PATH="/usr/local/cuda/include"
    export LIBRARY_PATH="/usr/local/cuda/lib64"
    

    works for me on Ubuntu 16.04 and 18.04. I don't have CUDA_LIBRARY_PATH set.

  4. bheisler commented on Jul 16, 2019

    @bheisler
    ContributorAuthor

    Changing the path that the GCC linker searches for includes and libraries - that seems like a pretty big hammer. I'd prefer to figure out why CUDA_LIBRARY_PATH doesn't work and fix cuda-sys, if possible.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions