Skip to content
Closed
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
45 changes: 45 additions & 0 deletions docs/domains/blas/axpy.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _onemkl_blas_axpy:

axpy
Expand Down Expand Up @@ -99,6 +103,26 @@ axpy (Buffer Version)
y
Buffer holding the updated vector ``y``.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`


:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


.. _onemkl_blas_axpy_usm:

Expand Down Expand Up @@ -180,5 +204,26 @@ axpy (USM Version)

Output event to wait on to ensure computation is complete.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`



:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


**Parent topic:** :ref:`blas-level-1-routines`
148 changes: 148 additions & 0 deletions docs/domains/blas/axpy_batch.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _onemkl_blas_axpy_batch:

axpy_batch
Expand All @@ -24,6 +28,129 @@ operation adds a scalar-vector product to a vector.
* - ``std::complex<float>``
* - ``std::complex<double>``

.. _onemkl_blas_axpy_batch_buffer:

axpy_batch (Buffer Version)
---------------------------

.. rubric:: Description

The buffer version of ``axpy_batch`` supports only the strided API.

The strided API operation is defined as:
::

for i = 0 … batch_size – 1
X and Y are vectors at offset i * stridex, i * stridey in x and y
Y := alpha * X + Y
end for

where:

``alpha`` is scalar,

``X`` and ``Y`` are vectors.

**Strided API**

.. rubric:: Syntax

.. code-block:: cpp

namespace oneapi::mkl::blas::column_major {
void axpy_batch(sycl::queue &queue,
std::int64_t n,
T alpha,
sycl::buffer<T,
1> &x,
std::int64_t incx,
std::int64_t stridex,
sycl::buffer<T,
1> &y,
std::int64_t incy,
std::int64_t stridey,
std::int64_t batch_size)
}
.. code-block:: cpp

namespace oneapi::mkl::blas::row_major {
void axpy_batch(sycl::queue &queue,
std::int64_t n,
T alpha,
sycl::buffer<T,
1> &x,
std::int64_t incx,
std::int64_t stridex,
sycl::buffer<T,
1> &y,
std::int64_t incy,
std::int64_t stridey,
std::int64_t batch_size)
}

.. container:: section

.. rubric:: Input Parameters

queue
The queue where the routine should be executed.

n
Number of elements in ``X`` and ``Y``.

alpha
Specifies the scalar ``alpha``.

x
Buffer holding input vectors ``X`` with size ``stridex`` * ``batch_size``.

incx
Stride of vector ``X``.

stridex
Stride between different ``X`` vectors.

y
Buffer holding input/output vectors ``Y`` with size ``stridey`` * ``batch_size``.

incy
Stride of vector ``Y``.

stridey
Stride between different ``Y`` vectors.

batch_size
Specifies the number of ``axpy`` operations to perform.

.. container:: section

.. rubric:: Output Parameters

y
Output buffer, overwritten by ``batch_size`` ``axpy`` operations of the form
``alpha`` * ``X`` + ``Y``.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`


:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


.. _onemkl_blas_axpy_batch_usm:

axpy_batch (USM Version)
Expand Down Expand Up @@ -243,5 +370,26 @@ The total number of vectors in ``x`` and ``y`` are given by the ``batch_size`` p

Output event to wait on to ensure computation is complete.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`



:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


**Parent topic:**:ref:`blas-like-extensions`
4 changes: 4 additions & 0 deletions docs/domains/blas/blas-level-1-routines.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _blas-level-1-routines:

BLAS Level 1 Routines
Expand Down
4 changes: 4 additions & 0 deletions docs/domains/blas/blas-level-2-routines.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _blas-level-2-routines:

BLAS Level 2 Routines
Expand Down
4 changes: 4 additions & 0 deletions docs/domains/blas/blas-level-3-routines.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _blas-level-3-routines:

BLAS Level 3 Routines
Expand Down
4 changes: 4 additions & 0 deletions docs/domains/blas/blas-like-extensions.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _blas-like-extensions:

BLAS-like Extensions
Expand Down
6 changes: 6 additions & 0 deletions docs/domains/blas/blas.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _onemkl_blas:

BLAS Routines
Expand All @@ -13,3 +17,5 @@ oneMKL provides DPC++ interfaces to the Basic Linear Algebra Subprograms (BLAS)
blas-level-3-routines.rst
blas-like-extensions.rst


**Parent topic:** :ref:`onemkl_dense_linear_algebra`
45 changes: 45 additions & 0 deletions docs/domains/blas/copy.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _onemkl_blas_copy:

copy
Expand Down Expand Up @@ -85,6 +89,26 @@ copy (Buffer Version)
y
Buffer holding the updated vector ``y``.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`


:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


.. _onemkl_blas_copy_usm:

Expand Down Expand Up @@ -155,5 +179,26 @@ copy (USM Version)

Output event to wait on to ensure computation is complete.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`



:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


**Parent topic:** :ref:`blas-level-1-routines`
45 changes: 45 additions & 0 deletions docs/domains/blas/dot.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _onemkl_blas_dot:

dot
Expand Down Expand Up @@ -100,6 +104,26 @@ dot (Buffer Version)
result
Buffer where the result (a scalar) will be stored.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`


:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


.. _onemkl_blas_dot_usm:

Expand Down Expand Up @@ -178,5 +202,26 @@ dot (USM Version)

Output event to wait on to ensure computation is complete.

.. container:: section

.. rubric:: Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

:ref:`oneapi::mkl::invalid_argument<onemkl_exception_invalid_argument>`



:ref:`oneapi::mkl::unsupported_device<onemkl_exception_unsupported_device>`


:ref:`oneapi::mkl::host_bad_alloc<onemkl_exception_host_bad_alloc>`


:ref:`oneapi::mkl::device_bad_alloc<onemkl_exception_device_bad_alloc>`


:ref:`oneapi::mkl::unimplemented<onemkl_exception_unimplemented>`


**Parent topic:** :ref:`blas-level-1-routines`
Loading