Skip to content

Fixed failure of test_floor_ceil_trunc_errors, sped up usm_type test #1292

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 1 commit into from
Jul 19, 2023

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Jul 19, 2023

Since support for overlapping out and argument arrays has been added the expected TypeError is no longer raised.

Do not use np.float32(usm_ndarray) use-pattern, use dpt.asnumpy(usm_ndarray) instead. The former generates usm_ndarray.size single-element device-to-host transfers, while the latter does it in a single kernel invocation.

  • 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?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

Since support for overlapping out and argument arrays has been added
the expected TypeError is no longer raised.

Do not use `np.float32(usm_ndarray)` use-pattern, use
`dpt.asnumpy(usm_ndarray)` instead. The former generates usm_ndarray.size
single-element device-to-host transfers, while the latter does it in a
single kernel invocation.
@oleksandr-pavlyk oleksandr-pavlyk requested a review from vtavana July 19, 2023 19:13
@github-actions
Copy link

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 83.203% (-0.02%) from 83.219% when pulling 5fabcbd on test-floor-ceil-trunc-changes into 43e3870 on master.

@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev0=py310h7bf5fec_9 ran successfully.
Passed: 475
Failed: 525
Skipped: 119

@oleksandr-pavlyk oleksandr-pavlyk merged commit af302a5 into master Jul 19, 2023
@oleksandr-pavlyk oleksandr-pavlyk deleted the test-floor-ceil-trunc-changes branch July 19, 2023 21:57
@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.6dev0=py310h7bf5fec_9 ran successfully.
Passed: 475
Failed: 525
Skipped: 119

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