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.
Paths
| Differential D23037
[CUDA] Fix libdevice selection. ClosedPublic Authored by tra on Aug 1 2016, 2:42 PM.
Details Summary This makes clang's libdevice selection match that of NVCC as described in If required libdevice variant is not found, driver now fails with an error.
Diff Detail Event Timelinetra updated this object. Comment Actions Added tests for libdevice mapping correctness.
Comment Actions Now that D23042 / r277537 makes sure that CudaToolchain is only used on device side, we can This revision is now accepted and ready to land.Aug 2 2016, 4:05 PM Closed by commit rL277542: [CUDA] Fix libdevice selection. (authored by tra). · Explain WhyAug 2 2016, 4:20 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 66385 include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains.cpp
test/Driver/cuda-detect.cu
|
I *think* march is never empty here. We should add it when we create the CudaActions.
Same below.
If I'm right or if I'm wrong, let's make sure there are tests. :)