diff options
author | Justin Lebar <jlebar@google.com> | 2016-10-08 22:16:12 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-10-08 22:16:12 +0000 |
commit | d3c5d2a4de10d4bdb01937d970f780d38cffb96b (patch) | |
tree | 94b91984bf2fd7271899a4c5b89f38a75ab534bc /clang/lib/Headers/__clang_cuda_runtime_wrapper.h | |
parent | 2dfbe9a3b4f72489f05b1ab18b39add060f10b86 (diff) | |
download | bcm5719-llvm-d3c5d2a4de10d4bdb01937d970f780d38cffb96b.tar.gz bcm5719-llvm-d3c5d2a4de10d4bdb01937d970f780d38cffb96b.zip |
[CUDA] Support <complex> and std::min/max on the device.
Summary:
We do this by wrapping <complex> and <algorithm>.
Tests are in the test-suite.
Reviewers: tra
Subscribers: jhen, beanz, cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D24979
llvm-svn: 283680
Diffstat (limited to 'clang/lib/Headers/__clang_cuda_runtime_wrapper.h')
-rw-r--r-- | clang/lib/Headers/__clang_cuda_runtime_wrapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Headers/__clang_cuda_runtime_wrapper.h b/clang/lib/Headers/__clang_cuda_runtime_wrapper.h index 6c6dff86adc..3ff88736e22 100644 --- a/clang/lib/Headers/__clang_cuda_runtime_wrapper.h +++ b/clang/lib/Headers/__clang_cuda_runtime_wrapper.h @@ -312,6 +312,7 @@ __device__ inline __cuda_builtin_gridDim_t::operator dim3() const { #include <__clang_cuda_cmath.h> #include <__clang_cuda_intrinsics.h> +#include <__clang_cuda_complex_builtins.h> // curand_mtgp32_kernel helpfully redeclares blockDim and threadIdx in host // mode, giving them their "proper" types of dim3 and uint3. This is |