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
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 118969 lib/Driver/ToolChains/Cuda.cpp
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/bin/.keep
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/include/.keep
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/lib/.keep
test/Driver/Inputs/CUDA-nolibdevice/usr/local/cuda/lib64/.keep
test/Driver/cuda-detect.cu
|