summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-02-24 21:49:31 +0000
committerJustin Lebar <jlebar@google.com>2016-02-24 21:49:31 +0000
commitc8dae5378b6e5520e958adf1ae28805916665547 (patch)
tree04a2fbf0db1dbc1f75fd626a9e00bb74be688c19 /clang/lib/Driver/Tools.cpp
parent048a4c1ca9861ef21787cafb43f68a967a1f9c8d (diff)
downloadbcm5719-llvm-c8dae5378b6e5520e958adf1ae28805916665547.tar.gz
bcm5719-llvm-c8dae5378b6e5520e958adf1ae28805916665547.zip
[CUDA] Add hack so code which includes "curand.h" doesn't break.
Summary: curand.h includes curand_mtgp32_kernel.h. In host mode, this header redefines threadIdx and blockDim, giving them their "proper" types of uint3 and dim3, respectively. clang has its own plan for these variables -- their types are magic builtin classes. So these redefinitions are incompatible. As a hack, we force-include the offending CUDA header and use #defines to get the right types for threadIdx and blockDim. Reviewers: tra Subscribers: echristo, cfe-commits Differential Revision: http://reviews.llvm.org/D17562 llvm-svn: 261776
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud