[PATCH] D45495: [CUDA] Added --[no-]cuda-include-ptx=sm_XX|all option.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 10:55:36 PDT 2018


tra created this revision.
tra added a reviewer: jlebar.
Herald added a subscriber: sanjoy.

Currently we always include PTX into the fatbin along
with the GPU code. It about doubles the size of the GPU binary
we need to carry in the executable. These options allow control
inclusion of PTX into GPU binary.

This patch does not change the defaults, though we may consider
making no-PTX the default in the future.


https://reviews.llvm.org/D45495

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Cuda.cpp
  clang/test/Driver/cuda-options.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45495.141877.patch
Type: text/x-patch
Size: 5311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180410/10af6caf/attachment.bin>


More information about the cfe-commits mailing list