Skip to content

Commit

Permalink
add doxygen workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fbusato committed Mar 4, 2025
1 parent 80fd730 commit 1fa1b86
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cub/cub/device/device_for.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,11 @@ public:
* ForEachInExtents
********************************************************************************************************************/

#ifdef _CCCL_DOXYGEN_INVOKED // Otherwise doxygen doesn't document the functions
# undef __cccl_lib_mdspan
# define __cccl_lib_mdspan 1
#endif

#if __cccl_lib_mdspan

//! @rst
Expand Down Expand Up @@ -875,7 +880,7 @@ public:
//! .. literalinclude:: ../../../cub/test/catch2_test_device_for_each_in_extents_api.cu
//! :language: c++
//! :dedent:
//! :start-after:example-begin for-each-in-extents-example
//! :start-after: example-begin for-each-in-extents-example
//! :end-before: example-end for-each-in-extents-example
//!
//! @endrst
Expand Down Expand Up @@ -955,7 +960,7 @@ public:
//! .. literalinclude:: ../../../cub/test/catch2_test_device_for_each_in_extents_api.cu
//! :language: c++
//! :dedent:
//! :start-after:example-begin for-each-in-extents-example
//! :start-after: example-begin for-each-in-extents-example
//! :end-before: example-end for-each-in-extents-example
//!
//! @endrst
Expand Down Expand Up @@ -990,7 +995,6 @@ public:
CUB_DETAIL_NVTX_RANGE_SCOPE("cub::DeviceFor::ForEachInExtents");
return detail::for_each_in_extents::dispatch_t<extents_type, OpType>::dispatch(extents, op, stream);
}

#endif // __cccl_lib_mdspan
};

Expand Down

0 comments on commit 1fa1b86

Please sign in to comment.