summaryrefslogtreecommitdiffstats
path: root/clang/utils/ClangDataFormat.py
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-11-17 22:28:52 +0000
committerArtem Belevich <tra@google.com>2015-11-17 22:28:52 +0000
commitc29db84419592e98e71a08d1a9fb04a3d6b51a0c (patch)
tree6749a032ef55cd57a6c56d99ad632f18e0885101 /clang/utils/ClangDataFormat.py
parent34f481acc64b0aa8dbf9c8283122ab470bad9d4e (diff)
downloadbcm5719-llvm-c29db84419592e98e71a08d1a9fb04a3d6b51a0c.tar.gz
bcm5719-llvm-c29db84419592e98e71a08d1a9fb04a3d6b51a0c.zip
[CUDA] Added a wrapper header for inclusion of stock CUDA headers.
Header files that come with CUDA are assuming split host/device compilation and are not usable by clang out of the box. With a bit of preprocessor magic it's possible to twist them into something clang can use. This wrapper always includes CUDA headers exactly the same way during host and device compilation passes and produces identical preprocessed content during host and device side compilation for sm_35 GPUs. Device compilation passes for older GPUs will see a smaller subset of device functions supported by particular GPU. The wrapper assumes specific contents of CUDA header files and works only with CUDA 7.0 and 7.5. Differential Revision: http://reviews.llvm.org/D13171 llvm-svn: 253388
Diffstat (limited to 'clang/utils/ClangDataFormat.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud