Skip to content

Added get_strides_vector and get_shape_vector - #1090

Merged
ndgrigorian merged 3 commits into
masterfrom
usm-ndarray-shape-stride-vectors
Mar 1, 2023
Merged

ndgrigorian merged 3 commits into
masterfrom
usm-ndarray-shape-stride-vectors

Conversation

@ndgrigorian

@ndgrigorian ndgrigorian commented Mar 1, 2023 •

Copy link
Copy Markdown
Collaborator

This pull request adds methods get_strides_vector and get_shape_vector to usm_ndarray.

These functions are slightly more convenient and can be used to clean up some strides logic, especially where multiple stride copies are involved.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?

@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

@coveralls

coveralls commented Mar 1, 2023 •

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage: 82.316%. Remained the same when pulling 7082912 on usm-ndarray-shape-stride-vectors into c32423c on master.

@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_57 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

@ndgrigorian
ndgrigorian force-pushed the usm-ndarray-shape-stride-vectors branch from 24b8bdd to df6114d Compare March 1, 2023 02:01
@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_57 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

Comment thread dpctl/apis/include/dpctl4pybind11.hpp Resolved
Comment thread dpctl/apis/include/dpctl4pybind11.hpp Resolved
Comment thread dpctl/apis/include/dpctl4pybind11.hpp Resolved
@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Could you please also remove uses of this->method_name() through the implementation of usm_ndarray?

@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_58 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

Comment thread dpctl/apis/include/dpctl4pybind11.hpp Resolved
Comment thread dpctl/apis/include/dpctl4pybind11.hpp Resolved
Removed const qualifier from returned vector.
@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_59 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

@ndgrigorian
ndgrigorian merged commit b45e174 into master Mar 1, 2023
@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@github-actions

github-actions Bot commented Mar 1, 2023

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_59 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

@ndgrigorian
ndgrigorian deleted the usm-ndarray-shape-stride-vectors branch March 2, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants