Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
ndgrigorian merged 1 commit intomasterIntelPython/dpctl:masterfrom
repeat-comp-ht-depends-fixIntelPython/dpctl:repeat-comp-ht-depends-fixCopy head branch name to clipboard
Oct 6, 2023
Merged

Fix host_task dependency not being passed to repeat 1d#1430
ndgrigorian merged 1 commit intomasterIntelPython/dpctl:masterfrom
repeat-comp-ht-depends-fixIntelPython/dpctl:repeat-comp-ht-depends-fixCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.