Skip to content

Commit

Permalink
Replace inconsistent Doxygen macros with _CCCL_DOXYGEN_INVOKED (#2921)
Browse files Browse the repository at this point in the history
fixes #2362
  • Loading branch information
ericniebler authored Nov 21, 2024
1 parent 801b794 commit 0722044
Show file tree
Hide file tree
Showing 82 changed files with 376 additions and 379 deletions.
4 changes: 2 additions & 2 deletions cub/cub/block/block_discontinuity.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public:
//! @name Head flag operations
//! @{

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

/**
* @param[out] head_flags
Expand Down Expand Up @@ -349,7 +349,7 @@ public:
Iterate::FlagHeads(linear_tid, head_flags, input, preds, flag_op);
}

#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! @rst
//! Sets head flags indicating discontinuities between items partitioned across the thread
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/block/block_exchange.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ public:

//! @} end member group

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

/// @param[in-out] items
/// Items to exchange, converting between **striped** and **blocked** arrangements.
Expand Down Expand Up @@ -1292,7 +1292,7 @@ public:
ScatterToStriped(items, items, ranks, is_valid);
}

#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED
};

CUB_NAMESPACE_END
4 changes: 2 additions & 2 deletions cub/cub/block/block_load.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ _CCCL_DEVICE _CCCL_FORCEINLINE void LoadDirectBlocked(
LoadDirectBlocked(linear_tid, block_src_it, dst_items, block_items_end);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

//! @brief Internal implementation for load vectorization
//!
Expand Down Expand Up @@ -225,7 +225,7 @@ InternalLoadDirectBlockedVectorized(int linear_tid, const T* block_src_ptr, T (&
}
}

#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! @rst
//! Load a linear segment of items into a blocked arrangement across the thread block.
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/block/block_merge_sort.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ private:
// Whether or not there are values to be trucked along with keys
static constexpr bool KEYS_ONLY = ::cuda::std::is_same<ValueT, NullType>::value;

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
/// Shared memory type required by this thread block
union _TempStorage
{
KeyT keys_shared[ITEMS_PER_TILE + 1];
ValueT items_shared[ITEMS_PER_TILE + 1];
}; // union TempStorage
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

/// Shared storage reference
_TempStorage& temp_storage;
Expand Down
16 changes: 8 additions & 8 deletions cub/cub/block/block_radix_rank.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ struct BlockRadixRankEmptyCallback
_CCCL_DEVICE _CCCL_FORCEINLINE void operator()(int (&bins)[BINS_PER_THREAD]) {}
};

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
namespace detail
{

Expand Down Expand Up @@ -121,7 +121,7 @@ struct warp_in_block_matcher_t<Bits, 0, PartialWarpId>
};

} // namespace detail
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! @rst
//! BlockRadixRank provides operations for ranking unsigned integer types within a CUDA thread block.
Expand Down Expand Up @@ -263,7 +263,7 @@ private:
/// BlockScan type
using BlockScan = BlockScan<PackedCounter, BLOCK_DIM_X, INNER_SCAN_ALGORITHM, BLOCK_DIM_Y, BLOCK_DIM_Z>;

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
struct __align__(16) _TempStorage
{
union Aliasable
Expand All @@ -276,7 +276,7 @@ private:
// Storage for scanning local ranks
typename BlockScan::TempStorage block_scan;
};
#endif // !DOXYGEN_SHOULD_SKIP_THIS
#endif // !_CCCL_DOXYGEN_INVOKED

/// Shared storage reference
_TempStorage& temp_storage;
Expand Down Expand Up @@ -597,7 +597,7 @@ private:
/// BlockScan type
using BlockScanT = BlockScan<DigitCounterT, BLOCK_THREADS, INNER_SCAN_ALGORITHM, BLOCK_DIM_Y, BLOCK_DIM_Z>;

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
struct __align__(16) _TempStorage
{
typename BlockScanT::TempStorage block_scan;
Expand All @@ -609,7 +609,7 @@ private:
}
aliasable;
};
#endif // !DOXYGEN_SHOULD_SKIP_THIS
#endif // !_CCCL_DOXYGEN_INVOKED

/// Shared storage reference
_TempStorage& temp_storage;
Expand Down Expand Up @@ -1183,7 +1183,7 @@ struct BlockRadixRankMatchEarlyCounts
}
};

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
namespace detail
{

Expand Down Expand Up @@ -1211,6 +1211,6 @@ using block_radix_rank_t = ::cuda::std::_If<
BlockRadixRankMatchEarlyCounts<BlockDimX, RadixBits, IsDescending, ScanAlgorithm, WARP_MATCH_ATOMIC_OR>>>>>;

} // namespace detail
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

CUB_NAMESPACE_END
8 changes: 4 additions & 4 deletions cub/cub/block/block_radix_sort.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private:
/// BlockExchange utility type for values
using BlockExchangeValues = BlockExchange<ValueT, BLOCK_DIM_X, ITEMS_PER_THREAD, false, BLOCK_DIM_Y, BLOCK_DIM_Z>;

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
/// Shared memory storage layout type
union _TempStorage
{
Expand All @@ -312,7 +312,7 @@ private:
typename BlockExchangeKeys::TempStorage exchange_keys;
typename BlockExchangeValues::TempStorage exchange_values;
};
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

/******************************************************************************
* Thread fields
Expand Down Expand Up @@ -469,7 +469,7 @@ private:
}

public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

/**
* @brief Sort blocked -> striped arrangement
Expand Down Expand Up @@ -554,7 +554,7 @@ public:
}
}

#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

/// @smemstorage{BlockRadixSort}
struct TempStorage : Uninitialized<_TempStorage>
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/block/block_run_length_decode.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private:
/// Type used to index into the block's runs
using RunOffsetT = uint32_t;

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
/// Shared memory type required by this thread block
union _TempStorage
{
Expand All @@ -184,7 +184,7 @@ private:
DecodedOffsetT run_offsets[BLOCK_RUNS];
} runs;
}; // union TempStorage
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

/// Internal storage allocator (used when the user does not provide pre-allocated shared memory)
_CCCL_DEVICE _CCCL_FORCEINLINE _TempStorage& PrivateStorage()
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/block/block_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ public:
}

//! @} end member group
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document no-initial-value scans
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document no-initial-value scans

//! @name Exclusive prefix scan operations (no initial value, single datum per thread)
//! @{
Expand Down Expand Up @@ -1445,7 +1445,7 @@ public:
}

//! @} end member group
#endif // DOXYGEN_SHOULD_SKIP_THIS // Do not document no-initial-value scans
#endif // _CCCL_DOXYGEN_INVOKED // Do not document no-initial-value scans

//! @name Inclusive prefix sum operations
//! @{
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/block/block_store.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1229,12 +1229,12 @@ public:
//! @} end member group
};

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
template <class Policy, class It, class T = cub::detail::value_t<It>>
struct BlockStoreType
{
using type = cub::BlockStore<T, Policy::BLOCK_THREADS, Policy::ITEMS_PER_THREAD, Policy::STORE_ALGORITHM>;
};
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

CUB_NAMESPACE_END
4 changes: 2 additions & 2 deletions cub/cub/block/radix_rank_sort_operations.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct ShiftDigitExtractor : BaseDigitExtractor<KeyT>
}
};

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
namespace detail
{

Expand Down Expand Up @@ -564,7 +564,7 @@ struct traits_t<T, false /* is_fundamental */>
} // namespace radix

} // namespace detail
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! Twiddling keys for radix sort
template <bool IS_DESCENDING, typename KeyT>
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/detail/array_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CUB_NAMESPACE_BEGIN
namespace detail
{

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

/***********************************************************************************************************************
* Generic Array-like to Array Conversion
Expand All @@ -74,7 +74,7 @@ to_array(const Input& input)
return to_array_impl<CastType1>(input, ::cuda::std::make_index_sequence<cub::detail::static_size_v<Input>()>{});
}

#endif // !DOXYGEN_SHOULD_SKIP_THIS
#endif // !_CCCL_DOXYGEN_INVOKED

} // namespace detail

Expand Down
2 changes: 1 addition & 1 deletion cub/cub/detail/detect_cuda_runtime.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# include <cuda_runtime_api.h>
#endif // !_CCCL_COMPILER(NVRTC)

#ifdef DOXYGEN_SHOULD_SKIP_THIS // Only parse this during doxygen passes:
#ifdef _CCCL_DOXYGEN_INVOKED // Only parse this during doxygen passes:

/**
* \def CUB_DISABLE_CDP
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/detail/nvtx.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
# pragma system_header
#endif // no system header

#ifdef DOXYGEN_SHOULD_SKIP_THIS // Only parse this during doxygen passes:
#ifdef _CCCL_DOXYGEN_INVOKED // Only parse this during doxygen passes:
//! When this macro is defined, no NVTX ranges are emitted by CCCL
# define CCCL_DISABLE_NVTX
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

// Enable the functionality of this header if:
// * The NVTX3 C API is available in CTK
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/detail/strong_load.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

CUB_NAMESPACE_BEGIN

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

namespace detail
{
Expand Down Expand Up @@ -247,6 +247,6 @@ static _CCCL_DEVICE _CCCL_FORCEINLINE unsigned int load_acquire(unsigned int con

} // namespace detail

#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

CUB_NAMESPACE_END
4 changes: 2 additions & 2 deletions cub/cub/detail/strong_store.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

CUB_NAMESPACE_BEGIN

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document

namespace detail
{
Expand Down Expand Up @@ -302,6 +302,6 @@ _CCCL_DEVICE _CCCL_FORCEINLINE void store_release(unsigned char* ptr, unsigned c

} // namespace detail

#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

CUB_NAMESPACE_END
16 changes: 8 additions & 8 deletions cub/cub/device/device_adjacent_difference.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public:
d_temp_storage, temp_storage_bytes, d_input, d_output, num_items, difference_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
template <typename InputIteratorT, typename OutputIteratorT, typename DifferenceOpT, typename NumItemsT = std::uint32_t>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED static CUB_RUNTIME_FUNCTION cudaError_t SubtractLeftCopy(
void* d_temp_storage,
Expand All @@ -283,7 +283,7 @@ public:

return SubtractLeftCopy(d_temp_storage, temp_storage_bytes, d_input, d_output, num_items, difference_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! @rst
//! Subtracts the left element of each adjacent pair of elements residing within device-accessible memory.
Expand Down Expand Up @@ -398,7 +398,7 @@ public:
d_temp_storage, temp_storage_bytes, d_input, d_input, num_items, difference_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
template <typename RandomAccessIteratorT, typename DifferenceOpT, typename NumItemsT = std::uint32_t>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED static CUB_RUNTIME_FUNCTION cudaError_t SubtractLeft(
void* d_temp_storage,
Expand All @@ -413,7 +413,7 @@ public:

return SubtractLeft(d_temp_storage, temp_storage_bytes, d_input, num_items, difference_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! @rst
//! Subtracts the right element of each adjacent pair of elements residing within device-accessible memory.
Expand Down Expand Up @@ -545,7 +545,7 @@ public:
d_temp_storage, temp_storage_bytes, d_input, d_output, num_items, difference_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
template <typename InputIteratorT, typename OutputIteratorT, typename DifferenceOpT, typename NumItemsT = std::uint32_t>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED static CUB_RUNTIME_FUNCTION cudaError_t SubtractRightCopy(
void* d_temp_storage,
Expand All @@ -561,7 +561,7 @@ public:

return SubtractRightCopy(d_temp_storage, temp_storage_bytes, d_input, d_output, num_items, difference_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED

//! @rst
//! Subtracts the right element of each adjacent pair of elements residing within device-accessible memory.
Expand Down Expand Up @@ -665,7 +665,7 @@ public:
d_temp_storage, temp_storage_bytes, d_input, d_input, num_items, difference_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
template <typename RandomAccessIteratorT, typename DifferenceOpT, typename NumItemsT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED static CUB_RUNTIME_FUNCTION cudaError_t SubtractRight(
void* d_temp_storage,
Expand All @@ -680,7 +680,7 @@ public:

return SubtractRight(d_temp_storage, temp_storage_bytes, d_input, num_items, difference_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
#endif // _CCCL_DOXYGEN_INVOKED
};

CUB_NAMESPACE_END
Loading

0 comments on commit 0722044

Please sign in to comment.