Skip to content

Commit

Permalink
[oneMKL][spblas] Require same memory kind for alpha and beta paramete…
Browse files Browse the repository at this point in the history
…rs (#556)
  • Loading branch information
Rbiessy authored Sep 5, 2024
1 parent e453f5f commit 616f2e7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
14 changes: 10 additions & 4 deletions source/elements/oneMKL/source/domains/spblas/operations/spmm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,11 @@ spmm

alpha
Host or USM pointer representing :math:`\alpha`. The USM allocation can be
on the host or device. Must be a host pointer if SYCL buffers are used.
Must be of the same type than the handles' data type.
on the host or device. The requirements are:

* Must use the same kind of memory as ``beta``.
* Must be a host pointer if SYCL buffers are used.
* Must be of the same type as the handles' data type.

A_view
Specifies which part of the handle should be read as described by
Expand All @@ -312,8 +315,11 @@ spmm

beta
Host or USM pointer representing :math:`\beta`. The USM allocation can be
on the host or device. Must be a host pointer if SYCL buffers are used.
Must be of the same type than the handles' data type.
on the host or device. The requirements are:

* Must use the same kind of memory as ``alpha``.
* Must be a host pointer if SYCL buffers are used.
* Must be of the same type as the handles' data type.

C_handle
Dense matrix handle object representing :math:`C`.
Expand Down
14 changes: 10 additions & 4 deletions source/elements/oneMKL/source/domains/spblas/operations/spmv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,11 @@ spmv

alpha
Host or USM pointer representing :math:`\alpha`. The USM allocation can be
on the host or device. Must be a host pointer if SYCL buffers are used.
Must be of the same type than the handles' data type.
on the host or device. The requirements are:

* Must use the same kind of memory as ``beta``.
* Must be a host pointer if SYCL buffers are used.
* Must be of the same type as the handles' data type.

A_view
Specifies which part of the handle should be read as described by
Expand All @@ -302,8 +305,11 @@ spmv

beta
Host or USM pointer representing :math:`\beta`. The USM allocation can be
on the host or device. Must be a host pointer if SYCL buffers are used.
Must be of the same type than the handles' data type.
on the host or device. The requirements are:

* Must use the same kind of memory as ``alpha``.
* Must be a host pointer if SYCL buffers are used.
* Must be of the same type as the handles' data type.

y_handle
Dense vector handle object representing :math:`y`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ spsv
alpha
Host or USM pointer representing :math:`\alpha`. The USM allocation can be
on the host or device. Must be a host pointer if SYCL buffers are used.
Must be of the same type than the handles' data type.
Must be of the same type as the handles' data type.

A_view
Specifies which part of the handle should be read as described by
Expand Down

0 comments on commit 616f2e7

Please sign in to comment.