summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-11-17 01:03:42 +0000
committerJustin Lebar <jlebar@google.com>2016-11-17 01:03:42 +0000
commitbe0cfcc28a22abf653ab8e934a01039cf79e4b5b (patch)
tree05b4f830e2647501eeb74f57b6f64b55129d6e26 /llvm/docs
parente3b74d3c4db8489be50d3f205f904ae6e21c4d23 (diff)
downloadbcm5719-llvm-be0cfcc28a22abf653ab8e934a01039cf79e4b5b.tar.gz
bcm5719-llvm-be0cfcc28a22abf653ab8e934a01039cf79e4b5b.zip
[CUDA] Update docs to indicate that clang now supports std::complex in CUDA mode.
The last remaining necessary change was D25403, landed as r287012. llvm-svn: 287184
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/CompileCudaWithLLVM.rst13
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/docs/CompileCudaWithLLVM.rst b/llvm/docs/CompileCudaWithLLVM.rst
index 9af9b14b4e5..a9a17172ef4 100644
--- a/llvm/docs/CompileCudaWithLLVM.rst
+++ b/llvm/docs/CompileCudaWithLLVM.rst
@@ -171,16 +171,9 @@ below). However, we have heard from implementers that it's possible to get
into situations where nvcc will omit a call to an ``std::complex`` function,
especially when compiling without optimizations.
-clang does not yet support ``std::complex``. Because we interpret the
-"wrong-side rule" more strictly than nvcc, ``std::complex`` doesn't work in
-``__device__`` or ``__host__ __device__`` code.
-
-In the meantime, you can get limited ``std::complex`` support in clang by
-building your code for C++14. In clang, all ``constexpr`` functions are always
-implicitly ``__host__ __device__`` (this corresponds to nvcc's
-``--relaxed-constexpr`` flag). In C++14, many ``std::complex`` functions are
-``constexpr``, so you can use these with clang. (nvcc does not currently
-support C++14.)
+As of 2016-11-16, clang supports ``std::complex`` without these caveats. It is
+tested with libstdc++ 4.8.5 and newer, but is known to work only with libc++
+newer than 2016-11-16.
``<algorithm>``
---------------
OpenPOWER on IntegriCloud