Skip to content

Commit 03d08c5

Browse files
author
Vahid Tavanashad
committed
avoid unnecessary copy of x2 in syrk
1 parent f5dc9ab commit 03d08c5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dpnp/dpnp_utils/dpnp_utils_linearalgebra.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,12 +1068,13 @@ def dpnp_multiplication(
10681068
dtype=res_dtype,
10691069
order=res_order,
10701070
)
1071-
x2 = _copy_array(
1072-
x2,
1073-
copy_flag=not x2_contig_flag,
1074-
dtype=res_dtype,
1075-
order=res_order,
1076-
)
1071+
if call_flag != "syrk":
1072+
x2 = _copy_array(
1073+
x2,
1074+
copy_flag=not x2_contig_flag,
1075+
dtype=res_dtype,
1076+
order=res_order,
1077+
)
10771078

10781079
if call_flag == "gemv":
10791080
if transpose:

0 commit comments

Comments
 (0)