diff options
author | Artem Belevich <tra@google.com> | 2015-11-17 22:28:52 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-11-17 22:28:52 +0000 |
commit | c29db84419592e98e71a08d1a9fb04a3d6b51a0c (patch) | |
tree | 6749a032ef55cd57a6c56d99ad632f18e0885101 /clang/lib/Headers/limits.h | |
parent | 34f481acc64b0aa8dbf9c8283122ab470bad9d4e (diff) | |
download | bcm5719-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/lib/Headers/limits.h')
0 files changed, 0 insertions, 0 deletions