Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/cccl/development/macro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ CUDA doesn't support exceptions in device code, however, sometimes we need to wr

*Note*: The ``_CCCL_CATCH`` clause must always introduce a named variable, like: ``_CCCL_CATCH(const exception_type& var)``.

.. note::

``_CCCL_THROW`` requires to include the ``<stdexcept>`` header, regardless exceptions are enabled or not.

Example:

.. code-block:: c++
Expand Down
2 changes: 2 additions & 0 deletions libcudacxx/include/cuda/__driver/driver_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
# include <dlfcn.h>
# endif

# include <stdexcept>

# include <cuda.h>

# include <cuda/std/__cccl/prologue.h>
Expand Down
2 changes: 2 additions & 0 deletions libcudacxx/include/cuda/__tma/make_tma_descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
# include <cuda/std/cstdint>
# include <cuda/std/span>

# include <stdexcept>

# include <driver_types.h>

# include <dlpack/dlpack.h>
Expand Down
Loading