[PATCH] D13170: [CUDA] Driver changes to pass flags needed to use detected CUDA installation.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 25 10:53:15 PDT 2015


tra created this revision.
tra added a reviewer: echristo.
tra added a subscriber: cfe-commits.

  - added detection of libdevice bitcode file and API to find one appropriate for the GPU we're compiling for.
  - added include paths to detected CUDA installation
  - added include paths for -aux-triple
  - added flags for linking in detected libdevice bitcode
  - added -nocudalib/-nocudainc to prevent automatic linking with libdevice of adding CUDA include path.
  - added test cases to verify new functionality



http://reviews.llvm.org/D13170

Files:
  include/clang/Driver/Driver.h
  include/clang/Driver/Options.td
  include/clang/Driver/ToolChain.h
  lib/Driver/ToolChain.cpp
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  lib/Driver/Tools.cpp
  lib/Driver/Tools.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: D13170.35738.patch
Type: text/x-patch
Size: 12063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150925/38c8d0aa/attachment.bin>


More information about the cfe-commits mailing list