If the user passes -nocudalib, we can live without it being present.
Simplify the code by just checking whether LibDeviceMap is empty.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D38901
[CUDA] Require libdevice only if needed ClosedPublic Authored by Hahnfeld on Oct 13 2017, 12:57 PM.
Details Summary If the user passes -nocudalib, we can live without it being present.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 13 2017, 1:37 PM Closed by commit rL315902: [CUDA] Require libdevice only if needed (authored by Hahnfeld). · Explain WhyOct 16 2017, 6:31 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 119149 cfe/trunk/lib/Driver/ToolChains/Cuda.cpp
cfe/trunk/test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/bin/.keep
cfe/trunk/test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/include/.keep
cfe/trunk/test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/lib/.keep
cfe/trunk/test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/lib64/.keep
cfe/trunk/test/Driver/cuda-detect.cu
|