Skip to content

Fix host_task dependency not being passed to repeat 1d #1430

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
Oct 6, 2023

Conversation

ndgrigorian
Copy link
Collaborator

This PR fixes a bug in repeat where host_task event dependencies for allocating shapes and strides on the device were not always being passed to the kernel, which could cause the program to crash.

See this CI run

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

1d variant of repeat was not passed host task event dependency for allocating shapes and strides on the device.
This caused sporadic segfaults, where the kernel would attempt to access unallocated device data.
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 85.909%. remained the same when pulling 6054967 on repeat-comp-ht-depends-fix into d4cc465 on master.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Array API standard conformance tests for dpctl=0.15.1dev0=py310ha25a700_6 ran successfully.
Passed: 934
Failed: 66
Skipped: 119

Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for catching this. LGTM!

@ndgrigorian ndgrigorian merged commit ebf118a into master Oct 6, 2023
@ndgrigorian ndgrigorian deleted the repeat-comp-ht-depends-fix branch November 28, 2023 18:03
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