Skip to content
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

Making test_atomic_op testcase CFD compliant #1015

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

adarshyoga
Copy link
Contributor

@adarshyoga adarshyoga commented Apr 21, 2023

  • Have you provided a meaningful PR description?

This PR makes the necessary changes to make test_atomic_op testcase follow "Compute Follows Data" semantics.

  • The input numpy ndarray declaration is changed to dpnp array.

  • All uses of dpctl.device_context has been removed. Filter strings are now passed directly to dpnp array allocation.

  • Kernel invocations now use dpex.Range classes for specifying global and local size.

  • 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?

Fixes #986. Tested on 4th gen Xeon. Tests run on CPU with OpenCL backend and on GPU with level zero

  • 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?

@adarshyoga adarshyoga changed the title Making test_atomic_op testcase to make it CFD compliant Making test_atomic_op testcase CFD compliant Apr 21, 2023
@diptorupd
Copy link
Contributor

Merging based on public CI.

@diptorupd diptorupd merged commit 1f19e4e into IntelPython:main Apr 22, 2023
github-actions bot added a commit that referenced this pull request Apr 22, 2023
Making test_atomic_op testcase CFD compliant 1f19e4e
@adarshyoga adarshyoga deleted the fix/atomic_tests branch April 23, 2023 20:05
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.

Atomics test cases fail on 4th gen Xeon CPU with OpenCL backend
2 participants