Skip to content

Commit

Permalink
Un-doc functions taking debug_synchronous (#2209)
Browse files Browse the repository at this point in the history
* undoc functions taking debug_synchronous
  • Loading branch information
bryevdv committed Aug 9, 2024
1 parent 8e20c9a commit 7473934
Show file tree
Hide file tree
Showing 24 changed files with 244 additions and 34 deletions.
8 changes: 8 additions & 0 deletions cub/cub/device/device_adjacent_difference.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +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
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 @@ -282,6 +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

//! @rst
//! Subtracts the left element of each adjacent pair of elements residing within device-accessible memory.
Expand Down Expand Up @@ -394,6 +396,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
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 @@ -408,6 +411,7 @@ public:

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

//! @rst
//! Subtracts the right element of each adjacent pair of elements residing within device-accessible memory.
Expand Down Expand Up @@ -539,6 +543,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
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 @@ -554,6 +559,7 @@ public:

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

//! @rst
//! Subtracts the right element of each adjacent pair of elements residing within device-accessible memory.
Expand Down Expand Up @@ -655,6 +661,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
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 @@ -669,6 +676,7 @@ public:

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

CUB_NAMESPACE_END
16 changes: 16 additions & 0 deletions cub/cub/device/device_histogram.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ struct DeviceHistogram
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename SampleIteratorT, typename CounterT, typename LevelT, typename OffsetT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t HistogramEven(
void* d_temp_storage,
Expand All @@ -232,6 +233,7 @@ struct DeviceHistogram
num_samples,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Computes an intensity histogram from a sequence of data samples using equal-width bins.
Expand Down Expand Up @@ -384,6 +386,7 @@ struct DeviceHistogram
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename SampleIteratorT, typename CounterT, typename LevelT, typename OffsetT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t HistogramEven(
void* d_temp_storage,
Expand Down Expand Up @@ -414,6 +417,7 @@ struct DeviceHistogram
row_stride_bytes,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Computes per-channel intensity histograms from a sequence of multi-channel "pixel" data samples using
Expand Down Expand Up @@ -584,6 +588,7 @@ struct DeviceHistogram
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <int NUM_CHANNELS,
int NUM_ACTIVE_CHANNELS,
typename SampleIteratorT,
Expand Down Expand Up @@ -615,6 +620,7 @@ struct DeviceHistogram
num_pixels,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Computes per-channel intensity histograms from a sequence of
Expand Down Expand Up @@ -830,6 +836,7 @@ struct DeviceHistogram
is_byte_sample);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <int NUM_CHANNELS,
int NUM_ACTIVE_CHANNELS,
typename SampleIteratorT,
Expand Down Expand Up @@ -865,6 +872,7 @@ struct DeviceHistogram
row_stride_bytes,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @} end member group
//! @name Custom bin ranges
Expand Down Expand Up @@ -991,6 +999,7 @@ struct DeviceHistogram
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename SampleIteratorT, typename CounterT, typename LevelT, typename OffsetT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t HistogramRange(
void* d_temp_storage,
Expand All @@ -1008,6 +1017,7 @@ struct DeviceHistogram
return HistogramRange(
d_temp_storage, temp_storage_bytes, d_samples, d_histogram, num_levels, d_levels, num_samples, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Computes an intensity histogram from a sequence of data samples using the specified bin boundary levels.
Expand Down Expand Up @@ -1147,6 +1157,7 @@ struct DeviceHistogram
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename SampleIteratorT, typename CounterT, typename LevelT, typename OffsetT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t HistogramRange(
void* d_temp_storage,
Expand Down Expand Up @@ -1175,6 +1186,7 @@ struct DeviceHistogram
row_stride_bytes,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Computes per-channel intensity histograms from a sequence of multi-channel "pixel" data samples
Expand Down Expand Up @@ -1334,6 +1346,7 @@ struct DeviceHistogram
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <int NUM_CHANNELS,
int NUM_ACTIVE_CHANNELS,
typename SampleIteratorT,
Expand All @@ -1356,6 +1369,7 @@ struct DeviceHistogram
return MultiHistogramRange(
d_temp_storage, temp_storage_bytes, d_samples, d_histogram, num_levels, d_levels, num_pixels, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Computes per-channel intensity histograms from a sequence of multi-channel "pixel" data samples using
Expand Down Expand Up @@ -1560,6 +1574,7 @@ struct DeviceHistogram
is_byte_sample);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <int NUM_CHANNELS,
int NUM_ACTIVE_CHANNELS,
typename SampleIteratorT,
Expand Down Expand Up @@ -1593,6 +1608,7 @@ struct DeviceHistogram
row_stride_bytes,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//@} end member group
};
Expand Down
12 changes: 12 additions & 0 deletions cub/cub/device/device_merge_sort.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ public:
return SortPairsNoNVTX(d_temp_storage, temp_storage_bytes, d_keys, d_items, num_items, compare_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename KeyIteratorT, typename ValueIteratorT, typename OffsetT, typename CompareOpT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t SortPairs(
void* d_temp_storage,
Expand All @@ -262,6 +263,7 @@ public:
return SortPairs<KeyIteratorT, ValueIteratorT, OffsetT, CompareOpT>(
d_temp_storage, temp_storage_bytes, d_keys, d_items, num_items, compare_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

/**
* @brief Sorts items using a merge sorting method.
Expand Down Expand Up @@ -409,6 +411,7 @@ public:
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename KeyInputIteratorT,
typename ValueInputIteratorT,
typename KeyIteratorT,
Expand Down Expand Up @@ -440,6 +443,7 @@ public:
compare_op,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

private:
// Internal version without NVTX range
Expand Down Expand Up @@ -566,6 +570,7 @@ public:
return SortKeysNoNVTX(d_temp_storage, temp_storage_bytes, d_keys, num_items, compare_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename KeyIteratorT, typename OffsetT, typename CompareOpT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t SortKeys(
void* d_temp_storage,
Expand All @@ -581,6 +586,7 @@ public:
return SortKeys<KeyIteratorT, OffsetT, CompareOpT>(
d_temp_storage, temp_storage_bytes, d_keys, num_items, compare_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

private:
// Internal version without NVTX range
Expand Down Expand Up @@ -723,6 +729,7 @@ public:
d_temp_storage, temp_storage_bytes, d_input_keys, d_output_keys, num_items, compare_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename KeyInputIteratorT, typename KeyIteratorT, typename OffsetT, typename CompareOpT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t SortKeysCopy(
void* d_temp_storage,
Expand All @@ -739,6 +746,7 @@ public:
return SortKeysCopy<KeyInputIteratorT, KeyIteratorT, OffsetT, CompareOpT>(
d_temp_storage, temp_storage_bytes, d_input_keys, d_output_keys, num_items, compare_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

/**
* @brief Sorts items using a merge sorting method.
Expand Down Expand Up @@ -849,6 +857,7 @@ public:
d_temp_storage, temp_storage_bytes, d_keys, d_items, num_items, compare_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename KeyIteratorT, typename ValueIteratorT, typename OffsetT, typename CompareOpT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t StableSortPairs(
void* d_temp_storage,
Expand All @@ -865,6 +874,7 @@ public:
return StableSortPairs<KeyIteratorT, ValueIteratorT, OffsetT, CompareOpT>(
d_temp_storage, temp_storage_bytes, d_keys, d_items, num_items, compare_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

/**
* @brief Sorts items using a merge sorting method.
Expand Down Expand Up @@ -966,6 +976,7 @@ public:
d_temp_storage, temp_storage_bytes, d_keys, num_items, compare_op, stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename KeyIteratorT, typename OffsetT, typename CompareOpT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION static cudaError_t StableSortKeys(
void* d_temp_storage,
Expand All @@ -981,6 +992,7 @@ public:
return StableSortKeys<KeyIteratorT, OffsetT, CompareOpT>(
d_temp_storage, temp_storage_bytes, d_keys, num_items, compare_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

/**
* @brief Sorts items using a merge sorting method.
Expand Down
6 changes: 6 additions & 0 deletions cub/cub/device/device_partition.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ struct DevicePartition
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename InputIteratorT, typename FlagIterator, typename OutputIteratorT, typename NumSelectedIteratorT>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION _CCCL_FORCEINLINE static cudaError_t Flagged(
void* d_temp_storage,
Expand All @@ -223,6 +224,7 @@ struct DevicePartition
return Flagged<InputIteratorT, FlagIterator, OutputIteratorT, NumSelectedIteratorT>(
d_temp_storage, temp_storage_bytes, d_in, d_flags, d_out, d_num_selected_out, num_items, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//! @rst
//! Uses the ``select_op`` functor to split the corresponding items from ``d_in`` into
Expand Down Expand Up @@ -367,6 +369,7 @@ struct DevicePartition
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename InputIteratorT, typename OutputIteratorT, typename NumSelectedIteratorT, typename SelectOp>
CUB_DETAIL_RUNTIME_DEBUG_SYNC_IS_NOT_SUPPORTED CUB_RUNTIME_FUNCTION _CCCL_FORCEINLINE static cudaError_t
If(void* d_temp_storage,
Expand All @@ -384,6 +387,7 @@ struct DevicePartition
return If<InputIteratorT, OutputIteratorT, NumSelectedIteratorT, SelectOp>(
d_temp_storage, temp_storage_bytes, d_in, d_out, d_num_selected_out, num_items, select_op, stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

private:
template <bool IS_DESCENDING,
Expand Down Expand Up @@ -656,6 +660,7 @@ public:
stream);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document
template <typename InputIteratorT,
typename FirstOutputIteratorT,
typename SecondOutputIteratorT,
Expand Down Expand Up @@ -698,6 +703,7 @@ public:
select_second_part_op,
stream);
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
};

CUB_NAMESPACE_END
Loading

0 comments on commit 7473934

Please sign in to comment.