[PATCH] D14556: [CUDA] Detect and link with CUDA's libdevice bitcode library.
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 15:48:07 PST 2015
tra created this revision.
tra added a reviewer: echristo.
tra added a subscriber: cfe-commits.
This is libdevice-related part extracted from D13170
- added detection of libdevice bitcode file and API to find one appropriate for the GPU we're compiling for.
- pass additional cc1 options for linking with detected libdevice bitcode
- added -nocudalib to prevent automatic linking with libdevice
- added test cases to verify new functionality
http://reviews.llvm.org/D14556
Files:
include/clang/Driver/Options.td
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/.keep
test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc
test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_35.10.bc
test/Driver/cuda-detect.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14556.39863.patch
Type: text/x-patch
Size: 7170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151110/adef66de/attachment.bin>
More information about the cfe-commits
mailing list