Clang CUDA Support Failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clang (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
nvidia-cuda-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
clang 3.9+ supports compiling CUDA C++ files (.cu):
http://
I installed the packages
- clang-3.9
- nvidia-cuda-toolkit (8.0)
on Ubuntu 16.04 (via the latest docker image: ubuntu:16.04).
My example file is just any .cu file, e.g. this one:
https:/
If I now run
clang++ main.cu
or
clang++ --cuda-path=/usr main.cu
I get the error
clang: error: cannot find CUDA installation. Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.
This is the same bug as reported upstream in
https:/
due to the "scattered install" of CUDA in Debian/Ubuntu.
Is there a way to fix this from the packaging side?
summary: |
- CUDA Support Failing + Clang CUDA Support Failing |
Changed in clang (Ubuntu): | |
status: | Confirmed → Invalid |
This bug was fixed in the package nvidia-cuda-toolkit - 8.0.61-3
---------------
nvidia-cuda-toolkit (8.0.61-3) unstable; urgency=medium
* Use dpkg makefile snippets instead of manual changelog parsing. path=/usr/ lib/cuda' . (LP: #1706326)
* Add monolithic cuda tree shim in /usr/lib/cuda/.
Use for 'clang++ --cuda-
* Update Lintian overrides.
-- Andreas Beckmann <email address hidden> Thu, 23 Nov 2017 05:23:45 +0100