Skip to content

Test async changes #1298

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
Jul 21, 2023
Merged

Test async changes #1298

merged 2 commits into from
Jul 21, 2023

Conversation

oleksandr-pavlyk
Copy link
Contributor

test_sycl_kernel_submit.py::test_async_submit has been sporadically failing as it attempts to confirm that concurrency was indeed detected. The chance of such detection decreases on beefier machines.

This PR selects global-work-size for the submitted kernels based on device's max_work_group_size property, and increases it few times before failing the test.

This change should reduce the need to restart failing jobs just to get this test to pass.

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

@github-actions
Copy link

@oleksandr-pavlyk oleksandr-pavlyk force-pushed the test-async-changes branch 2 times, most recently from a1437f3 to 3fc53d9 Compare July 21, 2023 15:24
Few changes to reduce sporadic test failures.

  1. Choose initial global work-size to be a multiple of
     max_work_group_size to ensure that enough work is
     being generated in the test

  2. Retry submission if asyncronicity is not yet detected
     and double the work if that does not help
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 83.218%. remained the same when pulling 22694b5 on test-async-changes into 20c5d3c on master.

@github-actions
Copy link

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

1 similar comment
@github-actions
Copy link

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

@oleksandr-pavlyk oleksandr-pavlyk merged commit 73a2b68 into master Jul 21, 2023
@oleksandr-pavlyk oleksandr-pavlyk deleted the test-async-changes branch July 21, 2023 19:48
@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_22 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.

4 participants