2021-04-23 17:18:14 -04:00
|
|
|
triton.language
|
|
|
|
================
|
2021-04-20 22:29:40 -04:00
|
|
|
|
2021-04-23 17:18:14 -04:00
|
|
|
.. currentmodule:: triton.language
|
2021-04-20 22:29:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Programming Model
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
program_id
|
|
|
|
num_programs
|
|
|
|
|
|
|
|
|
|
|
|
Creation Ops
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
arange
|
|
|
|
zeros
|
|
|
|
|
|
|
|
|
|
|
|
Shape Manipulation Ops
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
broadcast_to
|
|
|
|
reshape
|
|
|
|
ravel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Linear Algebra Ops
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
dot
|
|
|
|
|
|
|
|
Memory Ops
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
load
|
|
|
|
store
|
|
|
|
atomic_cas
|
|
|
|
atomic_xchg
|
|
|
|
|
|
|
|
|
|
|
|
Indexing Ops
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
where
|
|
|
|
|
|
|
|
|
|
|
|
Math Ops
|
|
|
|
----------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
exp
|
|
|
|
log
|
2021-08-14 10:34:07 -07:00
|
|
|
cos
|
|
|
|
sin
|
|
|
|
sqrt
|
2021-04-20 22:29:40 -04:00
|
|
|
sigmoid
|
|
|
|
softmax
|
|
|
|
|
|
|
|
|
|
|
|
Reduction Ops
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
max
|
|
|
|
min
|
|
|
|
sum
|
|
|
|
|
2021-08-18 11:15:53 -07:00
|
|
|
Atomic Ops
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
atomic_cas
|
|
|
|
atomic_add
|
|
|
|
atomic_max
|
|
|
|
atomic_min
|
|
|
|
|
2021-04-20 22:29:40 -04:00
|
|
|
|
|
|
|
Comparison ops
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
minimum
|
|
|
|
maximum
|
|
|
|
|
2021-09-02 22:02:40 -07:00
|
|
|
.. _Random Number Generation:
|
|
|
|
|
|
|
|
Random Number Generation
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
randint4x
|
|
|
|
randint
|
|
|
|
rand
|
|
|
|
randn
|
2021-04-20 22:29:40 -04:00
|
|
|
|
|
|
|
Compiler Hint Ops
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: generated
|
|
|
|
:nosignatures:
|
|
|
|
|
2021-09-02 22:02:40 -07:00
|
|
|
multiple_of
|