Skip to content

Commit 616f2e7

Browse files
authored
[oneMKL][spblas] Require same memory kind for alpha and beta parameters (#556)
1 parent e453f5f commit 616f2e7

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

source/elements/oneMKL/source/domains/spblas/operations/spmm.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,11 @@ spmm
297297

298298
alpha
299299
Host or USM pointer representing :math:`\alpha`. The USM allocation can be
300-
on the host or device. Must be a host pointer if SYCL buffers are used.
301-
Must be of the same type than the handles' data type.
300+
on the host or device. The requirements are:
301+
302+
* Must use the same kind of memory as ``beta``.
303+
* Must be a host pointer if SYCL buffers are used.
304+
* Must be of the same type as the handles' data type.
302305

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

313316
beta
314317
Host or USM pointer representing :math:`\beta`. The USM allocation can be
315-
on the host or device. Must be a host pointer if SYCL buffers are used.
316-
Must be of the same type than the handles' data type.
318+
on the host or device. The requirements are:
319+
320+
* Must use the same kind of memory as ``alpha``.
321+
* Must be a host pointer if SYCL buffers are used.
322+
* Must be of the same type as the handles' data type.
317323

318324
C_handle
319325
Dense matrix handle object representing :math:`C`.

source/elements/oneMKL/source/domains/spblas/operations/spmv.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,11 @@ spmv
287287

288288
alpha
289289
Host or USM pointer representing :math:`\alpha`. The USM allocation can be
290-
on the host or device. Must be a host pointer if SYCL buffers are used.
291-
Must be of the same type than the handles' data type.
290+
on the host or device. The requirements are:
291+
292+
* Must use the same kind of memory as ``beta``.
293+
* Must be a host pointer if SYCL buffers are used.
294+
* Must be of the same type as the handles' data type.
292295

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

303306
beta
304307
Host or USM pointer representing :math:`\beta`. The USM allocation can be
305-
on the host or device. Must be a host pointer if SYCL buffers are used.
306-
Must be of the same type than the handles' data type.
308+
on the host or device. The requirements are:
309+
310+
* Must use the same kind of memory as ``alpha``.
311+
* Must be a host pointer if SYCL buffers are used.
312+
* Must be of the same type as the handles' data type.
307313

308314
y_handle
309315
Dense vector handle object representing :math:`y`.

source/elements/oneMKL/source/domains/spblas/operations/spsv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ spsv
279279
alpha
280280
Host or USM pointer representing :math:`\alpha`. The USM allocation can be
281281
on the host or device. Must be a host pointer if SYCL buffers are used.
282-
Must be of the same type than the handles' data type.
282+
Must be of the same type as the handles' data type.
283283

284284
A_view
285285
Specifies which part of the handle should be read as described by

0 commit comments

Comments
 (0)