Skip to content

Commit

Permalink
Clarify libcu++ use by non-CUDA compilers (NVIDIA#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored Aug 5, 2024
1 parent 9459e4a commit c65a965
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/libcudacxx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ Summary: ``std::``, ``cuda::`` and ``cuda::std::``
can use the ``--expt-relaxed-constexpr`` flag to use any ``constexpr`` functions in ``__device__`` code.
libcu++ does not replace or interfere with host compiler's Standard Library.
- ``cuda::std::`` / ``<cuda/std/*>``: Conforming implementations of facilities from the Standard Library that work in
``__host__ __device__`` code.
- ``cuda::`` / ``<cuda/*>``: Conforming extensions to the Standard Library that work in ``__host__ __device__`` code.
``__host__`` and ``__device__`` code.
- ``cuda::`` / ``<cuda/*>``: Conforming extensions to the Standard Library that work in ``__host__`` and ``__device__`` code.
- ``cuda::device`` / ``<cuda/device/*>``: Conforming extensions to the Standard Library that work only in
``__device__`` code.
- ``cuda::ptx``: C++ convenience wrappers for inline PTX (only usable in ``__device__`` code).
- ``cuda::ptx``: C++ convenience wrappers for inline PTX that work only in ``__device__`` code.

Any libcu++ feature that works in ``__host__`` code also works when being compiled by a non-CUDA compiler (e.g., GCC).

.. code:: cuda
Expand Down

0 comments on commit c65a965

Please sign in to comment.