Skip to content

Commit

Permalink
find_first_of: Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-rzr committed Sep 9, 2024
1 parent fd07e9e commit 1cce46b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Documentation for rocPRIM is available at

### Additions

* Added the parallel `find_first_of` device function with autotuned configurations, this function is similar to `std::find_first_of`, it searches for the first occurrence of any of the provided elements.

### Changes

### Fixes
Expand Down
19 changes: 19 additions & 0 deletions docs/device_ops/find_first_of.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. meta::
:description: rocPRIM documentation and API reference library
:keywords: rocPRIM, ROCm, API, documentation

.. _dev-find_first_of:


Find first of
-------------

Configuring the kernel
~~~~~~~~~~~~~~~~~~~~~~

.. doxygenstruct:: rocprim::find_first_of_config

find_first_of
~~~~~~~~~~~~~

.. doxygenfunction:: rocprim::find_first_of(void* temporary_storage, size_t& storage_size, InputIterator1 input, InputIterator2 keys, OutputIterator output, size_t size, size_t keys_size, BinaryFunction compare_function = BinaryFunction(), hipStream_t stream = 0, bool debug_synchronous = false)
1 change: 1 addition & 0 deletions docs/device_ops/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
* :ref:`dev-memcpy`
* :ref:`dev-nth_element`
* :ref:`dev-partial_sort`
* :ref:`dev-find_first_of`
5 changes: 5 additions & 0 deletions docs/reference/ops_summary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ Data Movement
* ``load`` the complementary operations of the above ones.
* ``memcpy`` copies bytes between device sources and destinations

Sequence Search
===============

* ``find_first_of`` searches for the first occurrence of any of the provided elements.

Other operations
======================

Expand Down
1 change: 1 addition & 0 deletions docs/sphinx/_toc.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ subtrees:
- file: device_ops/histogram.rst
- file: device_ops/device_copy.rst
- file: device_ops/memcpy.rst
- file: device_ops/find_first_of.rst
- file: block_ops/index.rst
subtrees:
- entries:
Expand Down

0 comments on commit 1cce46b

Please sign in to comment.