Skip to content
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

Refactored OperatorTests.cu for faster compilation time #876

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/_sources/api/casting/as_int8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Cast an operator to an int8_t
Examples
~~~~~~~~

.. literalinclude:: ../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../test/00_operators/cast_test.cu
:language: cpp
:start-after: example-begin as_int8-test-1
:end-before: example-end as_int8-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/casting/as_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Cast an operator to an arbitrary type
Examples
~~~~~~~~

.. literalinclude:: ../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../test/00_operators/cast_test.cu
:language: cpp
:start-after: example-begin as_type-test-1
:end-before: example-end as_type-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/dft/utility/fftshift2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Perform a 2D shift by shifting the zero-frequency component to the center of the

Examples
~~~~~~~~
.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/shift_test.cu
:language: cpp
:start-after: example-begin fftshift2D-test-1
:end-before: example-end fftshift2D-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/dft/utility/ifftshift2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Perform a 2D inverse by shifting a zero-frequency-shifted version back to the or

Examples
~~~~~~~~
.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/shift_test.cu
:language: cpp
:start-after: example-begin ifftshift2D-test-1
:end-before: example-end ifftshift2D-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/bitwise/and.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bitwise AND
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin and-test-1
:end-before: example-end and-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/bitwise/or.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bitwise OR
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin or-test-1
:end-before: example-end or-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/bitwise/xor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bitwise XOR
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin xor-test-1
:end-before: example-end xor-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/equal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Equality test
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin eq-test-1
:end-before: example-end eq-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/gt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Greater than
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin gt-test-1
:end-before: example-end gt-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/gte.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Greater than or equal to
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin gte-test-1
:end-before: example-end gte-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/isclose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ atomics are not available in hardware.
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin isclose-test-1
:end-before: example-end isclose-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/lt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Less than
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin lt-test-1
:end-before: example-end lt-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/lte.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Less than or equal to
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin lte-test-1
:end-before: example-end lte-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/comparison/neq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Non-equality test
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin neq-test-1
:end-before: example-end neq-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/logical/and.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Logical AND
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin land-test-1
:end-before: example-end land-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/logical/not.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Logical NOT
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin lnot-test-1
:end-before: example-end lnot-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/logic/logical/or.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Logical OR
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin lor-test-1
:end-before: example-end lor-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/basic/if.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Conditional "if" statement for operators
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin IF-test-1
:end-before: example-end IF-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/basic/ifelse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Conditional "if/else" statement for operators
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin IFELSE-test-1
:end-before: example-end IFELSE-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/basic/permute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Permute the dimensions of an operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/permute_test.cu
:language: cpp
:start-after: example-begin permute-test-1
:end-before: example-end permute-test-1
Expand Down
14 changes: 9 additions & 5 deletions docs/_sources/api/manipulation/basic/slice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@ be used to drop ranks, for operations such as selecting a single row.
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/slice_test.cu
:language: cpp
:start-after: example-begin slice-test-1
:end-before: example-end slice-test-1
:dedent:

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/slice_test.cu
:language: cpp
:start-after: example-begin slice-test-2
:end-before: example-end slice-test-2
:dedent:

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/slice_test.cu
:language: cpp
:start-after: example-begin slice-test-2
:end-before: example-end slice-test-2
:start-after: example-begin slice-test-3
:end-before: example-end slice-test-3
:dedent:

.. literalinclude:: ../../../../test/00_operators/slice_test.cu
:language: cpp
:start-after: example-begin slice-test-4
:end-before: example-end slice-test-4
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/clone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Clone one or more dimensions of an operator to a higher rank
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/clone_test.cu
:language: cpp
:start-after: example-begin clone-test-1
:end-before: example-end clone-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/concat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concatenated operators, depending on where it's indexed
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/concat_test.cu
:language: cpp
:start-after: example-begin concat-test-1
:end-before: example-end concat-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/flatten.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ of the original operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/flatten_test.cu
:language: cpp
:start-after: example-begin flatten-test-1
:end-before: example-end flatten-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/lcollapse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Collapse the left-most dimensions
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/collapse_test.cu
:language: cpp
:start-after: example-begin lcollapse-test-1
:end-before: example-end lcollapse-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/rcollapse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Collapse the right-most dimensions
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/collapse_test.cu
:language: cpp
:start-after: example-begin rcollapse-test-1
:end-before: example-end rcollapse-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/repmat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Repeat an operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/repmat_test.cu
:language: cpp
:start-after: example-begin repmat-test-1
:end-before: example-end repmat-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/joinrepeat/stack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a rank increase of one where the new dimension reflects the stacked operators.
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/stack_test.cu
:language: cpp
:start-after: example-begin stack-test-1
:end-before: example-end stack-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/fliplr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Flips an operator left to right
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/reverse_test.cu
:language: cpp
:start-after: example-begin fliplr-test-1
:end-before: example-end fliplr-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/flipud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Flips an operator up to down
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/reverse_test.cu
:language: cpp
:start-after: example-begin flipud-test-1
:end-before: example-end flipud-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/overlap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end of the data to make the tensor rectangular.
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/overlap_test.cu
:language: cpp
:start-after: example-begin overlap-test-1
:end-before: example-end overlap-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/permute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Permute the dimensions of an operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/permute_test.cu
:language: cpp
:start-after: example-begin permute-test-1
:end-before: example-end permute-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/reshape.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ the original size.
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/reshape_test.cu
:language: cpp
:start-after: example-begin reshape-test-1
:end-before: example-end reshape-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/reverse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Reverse the values of an operator along a single dimension
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/reverse_test.cu
:language: cpp
:start-after: example-begin reverse-test-1
:end-before: example-end reverse-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/rearranging/shift.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Shift an operator by a given amount either positive or negative along one dimens
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/shift_test.cu
:language: cpp
:start-after: example-begin shift-test-1
:end-before: example-end shift-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/manipulation/selecting/at.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the operation is launched:
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/at_test.cu
:language: cpp
:start-after: example-begin at-test-1
:end-before: example-end at-test-1
Expand Down
4 changes: 2 additions & 2 deletions docs/_sources/api/manipulation/selecting/remap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Remaps an input operator by selecting items from an input index operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/remap_test.cu
:language: cpp
:start-after: example-begin remap-test-1
:end-before: example-end remap-test-1
:dedent:

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/remap_test.cu
:language: cpp
:start-after: example-begin remap-test-2
:end-before: example-end remap-test-2
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/math/arithmetic/add.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Binary addition operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin add-test-1
:end-before: example-end add-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/math/arithmetic/div.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Element-wise division operator
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin div-test-1
:end-before: example-end div-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/math/arithmetic/fmod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Division remainder
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/fmod_test.cu
:language: cpp
:start-after: example-begin fmod-test-1
:end-before: example-end fmod-test-1
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/api/math/arithmetic/mod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Modulo
Examples
~~~~~~~~

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
.. literalinclude:: ../../../../test/00_operators/operator_func_test.cu
:language: cpp
:start-after: example-begin mod-test-1
:end-before: example-end mod-test-1
Expand Down
Loading