Skip to content

Use direct dpctl.tensor creation functions in tests instead of copying from host #1166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

oleksandr-pavlyk
Copy link
Contributor

Replaced pattern dpt.from_numpy(np.creation_op(...)) with dpt.creation_op(...) where applicable.

This change decreased test-suite runtime by 3 seconds.

  • Have you provided a meaningful PR description?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you checked performance impact of proposed changes?

This change reduced run-time of test_usm_ndarray_ctor by 3 seconds (from 16.5
to 13.5 on my machine) and marginally improves coverage of Python source file.
@coveralls
Copy link
Collaborator

Coverage Status

Coverage: 83.224%. Remained the same when pulling 2b9759b on use-dpt-constructors-in-tests into 8f2ba46 on master.

@github-actions
Copy link

github-actions bot commented Apr 9, 2023

@github-actions
Copy link

github-actions bot commented Apr 9, 2023

Array API standard conformance tests for dpctl=0.14.3dev0=py310h76be34b_96 ran successfully.
Passed: 46
Failed: 788
Skipped: 282

@oleksandr-pavlyk oleksandr-pavlyk merged commit 297269b into master Apr 10, 2023
@oleksandr-pavlyk oleksandr-pavlyk deleted the use-dpt-constructors-in-tests branch April 10, 2023 20:04
@github-actions
Copy link

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

@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.3dev0=py310h76be34b_96 ran successfully.
Passed: 46
Failed: 788
Skipped: 282

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