Skip to content

Commit bd753a3

Browse files
author
Vahid Tavanashad
committed
tmp changes
1 parent 624f14f commit bd753a3

File tree

168 files changed

+15
-64057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+15
-64057
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
python-ver-test-all-dtypes: '3.13'
2020
test-env-name: 'test'
2121
rerun-tests-on-failure: 'true'
22-
rerun-tests-max-attempts: 2
22+
rerun-tests-max-attempts: 1
2323
rerun-tests-timeout: 40
2424

2525
jobs:
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
32+
python: ['3.13']
3333
os: [ubuntu-22.04, windows-2022]
3434

3535
permissions:
@@ -126,7 +126,7 @@ jobs:
126126
strategy:
127127
fail-fast: false
128128
matrix:
129-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
129+
python: ['3.13']
130130
os: [ubuntu-latest]
131131

132132
env:
@@ -253,7 +253,7 @@ jobs:
253253
strategy:
254254
fail-fast: false
255255
matrix:
256-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
256+
python: ['3.13']
257257
os: [windows-2022]
258258

259259
env:
@@ -389,7 +389,7 @@ jobs:
389389
command: |
390390
if ( ${{ matrix.python }} -eq ${{ env.python-ver-test-all-dtypes }} ) {
391391
$env:DPNP_TEST_ALL_INT_TYPES=1
392-
python -m pytest -ra --pyargs ${{ env.package-name }}.tests
392+
python -m pytest -vra --pyargs ${{ env.package-name }}.tests
393393
} else {
394394
python -m pytest -n auto -ra --pyargs ${{ env.package-name }}.tests
395395
}
@@ -402,7 +402,7 @@ jobs:
402402
strategy:
403403
fail-fast: false
404404
matrix:
405-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
405+
python: ['3.13']
406406
os: [ubuntu-22.04, windows-2022]
407407

408408
runs-on: ${{ matrix.os }}

dpnp/dpnp_utils/dpnp_utils_linearalgebra.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ def _gemm_batch_matmul(exec_q, x1, x2, res):
266266
x2_usm = dpnp.get_usm_ndarray(x2[i : i + chunk, ...])
267267
res_usm = dpnp.get_usm_ndarray(res[i : i + chunk, ...])
268268

269+
print("x1:", x1_usm)
270+
print("x2:", x2_usm)
269271
ht_ev, blas_ev, row_major = bi._gemm_batch(
270272
exec_q,
271273
x1_usm,
@@ -274,8 +276,11 @@ def _gemm_batch_matmul(exec_q, x1, x2, res):
274276
depends=_manager.submitted_events,
275277
)
276278
_manager.add_event_pair(ht_ev, blas_ev)
277-
279+
print("device:", res_usm.device)
280+
print("usm_type:", res_usm.usm_type)
281+
print("res_usm:", res_usm)
278282
_, res_is_c_contig, res_is_f_contig = _define_contig_flag(res)
283+
print(row_major, res_is_c_contig, res_is_f_contig)
279284
if row_major:
280285
if res_is_f_contig:
281286
# Considering the multiplication for one of the batches,
@@ -453,6 +458,8 @@ def _get_result_shape_multiplication(x1, x2, func):
453458
assert func == "matmul"
454459
result_shape += (x1.shape[-2], x2.shape[-1])
455460

461+
if func == "vecmat":
462+
print(x1.shape, x2.shape, result_shape)
456463
return x1, x2, result_shape
457464

458465

@@ -992,6 +999,7 @@ def dpnp_multiplication(
992999
call_flag = "gemm_batch"
9931000
res_shape = result_shape
9941001

1002+
print(call_flag, func)
9951003
# dispatch to proper function call
9961004
if call_flag == "multiply":
9971005
result = dpnp.multiply(x1, x2)

dpnp/tests/test_absolute.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

dpnp/tests/test_amin_amax.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

dpnp/tests/test_arithmetic.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)