diff options
| author | Artem Belevich <tra@google.com> | 2015-11-17 22:28:50 +0000 |
|---|---|---|
| committer | Artem Belevich <tra@google.com> | 2015-11-17 22:28:50 +0000 |
| commit | 34f481acc64b0aa8dbf9c8283122ab470bad9d4e (patch) | |
| tree | 59996eb25e7709c93b6acefd720f7b9ab8cd491a /clang/test/Driver/Inputs/CUDA/usr | |
| parent | fa11ab53c05c99329b68fa6105afe2df9b7a8f9e (diff) | |
| download | bcm5719-llvm-34f481acc64b0aa8dbf9c8283122ab470bad9d4e.tar.gz bcm5719-llvm-34f481acc64b0aa8dbf9c8283122ab470bad9d4e.zip | |
[CUDA] Detect and link with CUDA's libdevice bitcode library.
- 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
Differential Revision: http://reviews.llvm.org/D14556
llvm-svn: 253387
Diffstat (limited to 'clang/test/Driver/Inputs/CUDA/usr')
| -rw-r--r-- | clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc (renamed from clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/.keep) | 0 | ||||
| -rw-r--r-- | clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_35.10.bc | 0 |
2 files changed, 0 insertions, 0 deletions
diff --git a/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/.keep b/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc index e69de29bb2d..e69de29bb2d 100644 --- a/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/.keep +++ b/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc diff --git a/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_35.10.bc b/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_35.10.bc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_35.10.bc |

