Files
composable_kernel/docs/reference/Composable_Kernel_vector_utilities.rst
spolifroni-amd 2ae753c2d0 Cherry pick doc changes into 6.4.3 (#2590)
* creation of install doc and refactor of doc in general (#1908)

* creation of install doc and refactor of doc in general

* updates based on review comments

* updated based on review comments

* updated readme and contributors markdown

* added extra note to not use -j on its own

* added note about smoke tests and regression tests

* made changes as per Illia's feedback

---------

Co-authored-by: Aviral Goel <aviral.goel@amd.com>
(cherry picked from commit a426f67301)
(cherry picked from commit ef9871ff23)

* Docs: Add precision support reference page (#1973)

* Docs: Add precision support reference page

* edit of the precision type content

* added more description on scalars

---------

Co-authored-by: spolifroni-amd <sandra.polifroni@amd.com>
Co-authored-by: Aviral Goel <aviral.goel@amd.com>
(cherry picked from commit fc073b483e)
(cherry picked from commit 1f61b696ee)

* fixed broken github link (#2063)

(cherry picked from commit 2c8132126c)
(cherry picked from commit ae2e3ffb29)

* updated Doxyfile and added the class list (#2147)

* updated Doxyfile and added the class list

* Update Doxyfile

(cherry picked from commit cfae863431)
(cherry picked from commit 1e3f59543d)

* added more API reference

(cherry picked from commit 8bb52d0ab0)

* Update README.md

Co-authored-by: John Afaganis <john.afaganis@gmail.com>
(cherry picked from commit 415273ea5f)

---------

Co-authored-by: Aviral Goel <aviral.goel@amd.com>
Co-authored-by: Adel Johar <adel.johar@amd.com>
Co-authored-by: John Afaganis <john.afaganis@gmail.com>
2025-07-30 14:21:47 -04:00

17 lines
1.1 KiB
ReStructuredText

.. meta::
:description: Composable Kernel supported precision types and custom type support
:keywords: composable kernel, precision, data types, ROCm
******************************************************
Composable Kernel vector template utilities
******************************************************
Composable Kernel includes template utilities for creating vector types with customizable widths. These template utilities also flatten nested vector types into a single, wider vector, preventing the creation of vectors of vectors.
Vectors composed of supported scalar and custom types can be created with the ``ck::vector_type`` template.
For example, ``ck::vector_type<float, 4>`` creates a vector composed of four floats and ``ck::vector_type<ck::half_t, 8>`` creates a vector composed of eight half-precision scalars.
For vector operations to be valid, the underlying types must be either a :doc:`supported scalar type <Composable_Kernel_supported_scalar_types>` or :doc:`a custom type <Composable_Kernel_custom_types>` that implements the required operations.