]> granicus.if.org Git - clang/commit
[CUDA] Fix libdevice selection.
authorArtem Belevich <tra@google.com>
Tue, 2 Aug 2016 23:12:51 +0000 (23:12 +0000)
committerArtem Belevich <tra@google.com>
Tue, 2 Aug 2016 23:12:51 +0000 (23:12 +0000)
commita17cb6ea509a92239fdee64f6442e95a665a7533
tree2365a50628718defe4fa0ac168fc574b0855538f
parent779573ee8f34819206af31c8cdc57f12e3afbf17
[CUDA] Fix libdevice selection.

This makes clang's libdevice selection match that of NVCC as described in
http://docs.nvidia.com/cuda/libdevice-users-guide/basic-usage.html#version-selection

If required libdevice variant is not found, driver now fails with an error.

Differential Revision: https://reviews.llvm.org/D23037

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277542 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains.cpp
test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_30.10.bc [new file with mode: 0644]
test/Driver/cuda-detect.cu