8000 ENH, SIMD: Add C++ wrapper for universal intrinsics by seiko2plus · Pull Request #21057 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH, SIMD: Add C++ wrapper for universal intrinsics #21057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
DOC: add reference for universal intrinsics
  • Loading branch information
seiko2plus committed Jan 12, 2024
commit 9d3c253e7d35efe7595d0e8802261665bd12d84c
1 change: 1 addition & 0 deletions doc/source/reference/simd/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The optimization process in NumPy is carried out in three layers:

build-options
how-it-works
intrinsics/index

.. _`NEP-38`: https://numpy.org/neps/nep-0038-SIMD-optimizations.html

23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/arithmetic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Arithmetic
~~~~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_arithmetic

23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/bitwise.rst
10000
Original file line numberDiff line number Diff line change
@@ -0,0 +1,23 @@
Bitwise
~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_bitwise

23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/comparison.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Comparison
~~~~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_comparison

23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/conversion.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Conversion
~~~~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_conversion

46 changes: 46 additions & 0 deletions doc/source/reference/simd/intrinsics/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Universal intrinsics (C++)
==========================

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>

Overview
--------

.. doxygengroup:: cpp_simd
:desc-only:


Data Types
----------

.. doxygengroup:: cpp_simd_types

Supported operations:
---------------------

.. toctree::

utils
miscellaneous
memory
bitwise
comparison
conversion
reorder
arithmetic
math
23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/math.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Math
~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_math

22 changes: 22 additions & 0 deletions doc/source/reference/simd/intrinsics/memory.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Memory
~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>

.. doxygengroup:: cpp_simd_memory

23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/miscellaneous.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Miscellaneous
~~~~~~~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_misc

23 changes: 23 additions & 0 deletions doc/source/reference/simd/intrinsics/reorder.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Reorder
~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_reorder

24 changes: 24 additions & 0 deletions doc/source/reference/simd/intrinsics/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Utility
~~~~~~~

.. raw:: html

<style>
/* hide the title of group cpp_simd */
.bd-article-container article section > dl > dt {
display:none;
}
/* hide the margin of group cpp_simd */
.bd-article-container article section > dl > dd {
margin: 0;
}
/* hide sections title typedefs, functions */
#breathe-section-title-typedefs, #breathe-section-title-functions, #breathe-section-title-variables {
display: none;
}
</style>


.. doxygengroup:: cpp_simd_utils


7 changes: 7 additions & 0 deletions numpy/_core/src/common/.doxyfile
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
INCLUDE_PATH += @CUR_DIR
INPUT += @CUR_DIR/simd/simd.hpp \
@CUR_DIR/simd/wrapper/datatypes.hpp \
@CUR_DIR/simd/forward.inc.hpp


PREDEFINED += NPY_FINLINE=inline NPY_CPU_DISPATCH_CURFX(X)=simd NPY_HAVE_SSE2
EXCLUDE_SYMBOLS += NPYV_IMPL_* helper
0