[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
This problem can be solved by putting .profile file the following line: export LIBRARY_PATH=/usr/lib/nvidia-current I think creating /etc/profile.d/nvidia-current.sh file containing the above is good idea. This file provides the system-wide setting. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/587288 Title: ld cannot find -lcuda, when compiling cuda programs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/587288/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
Probably, export LIBRARY_PATH=/usr/lib/nvidia-current:$LIBRARY_PATH is better than my previous code in comment #6. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/587288 Title: ld cannot find -lcuda, when compiling cuda programs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/587288/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
I confirm this in natty. Why are the drivers not installed in the usual place? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/587288 Title: ld cannot find -lcuda, when compiling cuda programs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/587288/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
I confirm the bug with ubuntu 10.10 : drivers from nvidia works but not the packaged drivers. It seems that there is a problem with symbolic link and/or variables environment. Please reopen this bug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/587288 Title: ld cannot find -lcuda, when compiling cuda programs -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
** Changed in: nvidia-graphics-drivers (Ubuntu) Status: Expired = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/587288 Title: ld cannot find -lcuda, when compiling cuda programs -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help. ** Changed in: nvidia-graphics-drivers (Ubuntu) Status: Incomplete = Expired -- ld cannot find -lcuda, when compiling cuda programs https://bugs.launchpad.net/bugs/587288 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
** Changed in: nvidia-graphics-drivers (Ubuntu) Status: Invalid = Incomplete -- ld cannot find -lcuda, when compiling cuda programs https://bugs.launchpad.net/bugs/587288 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
** Changed in: nvidia-graphics-drivers (Ubuntu) Status: Incomplete = Invalid -- ld cannot find -lcuda, when compiling cuda programs https://bugs.launchpad.net/bugs/587288 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
That helped, thanks. I had always thought that also ld searches the paths set in ld.so.conf, but it seems not to be the case. Anyway, could the update-alternatives system be used somehow to circumvent the nonstandard location of the driver by creating symlinks to /usr/lib? -- ld cannot find -lcuda, when compiling cuda programs https://bugs.launchpad.net/bugs/587288 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 587288] Re: ld cannot find -lcuda, when compiling cuda programs
You probably need to build it with -L/usr/lib/nvidia-current to tell ld to search that path. This can generally be done in the Makefile for the application you are building. ** Changed in: nvidia-graphics-drivers (Ubuntu) Status: New = Incomplete -- ld cannot find -lcuda, when compiling cuda programs https://bugs.launchpad.net/bugs/587288 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs