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

added device call after the bcast in the getitem #790

Merged
merged 3 commits into from Jun 9, 2021

Conversation

coquelin77
Copy link
Member

@coquelin77 coquelin77 commented Jun 8, 2021

Description

a minor bug was showing up where the bcast operation was not putting the data onto the proper GPU in the __getitem__ function. the code added may not be hit all the time, but it is safeguard for when this may happen.

Issue/s resolved: n/a

Changes proposed:

  • move the local array to the proper GPU after the bcast when there are integers in the getitem key

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Due Diligence

  • All split configurations tested
  • Multiple dtypes tested in relevant functions
  • Documentation updated (if needed)
  • Updated changelog.md under the title "Pending Additions"

Does this change modify the behaviour of other functions? If so, which?

no

@codecov
Copy link

codecov bot commented Jun 8, 2021

Codecov Report

Merging #790 (df6dd02) into master (184f112) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #790      +/-   ##
==========================================
- Coverage   90.85%   90.84%   -0.01%     
==========================================
  Files          64       64              
  Lines        8932     8934       +2     
==========================================
+ Hits         8115     8116       +1     
- Misses        817      818       +1     
Flag Coverage Δ
unit 90.84% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
heat/core/dndarray.py 96.36% <50.00%> (-0.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 184f112...df6dd02. Read the comment docs.

@coquelin77
Copy link
Member Author

ignore the diff hit please, im not sure why it only hits it on the master branch.

@ClaudiaComito
Copy link
Contributor

Hey @coquelin77 I'm a bit lost, is #784 fixed? In which case, we should be able to switch back to Bcast, which will write in the previously allocated buffer on the correct device?

@coquelin77
Copy link
Member Author

Hey @coquelin77 I'm a bit lost, is #784 fixed? In which case, we should be able to switch back to Bcast, which will write in the previously allocated buffer on the correct device?

i thought that it was fixed because it solved this problem, but it still caused the same issue that @ben-bou pointed out before. so i left it asbcast

ClaudiaComito
ClaudiaComito previously approved these changes Jun 9, 2021
Copy link
Contributor

@ClaudiaComito ClaudiaComito left a comment

Choose a reason for hiding this comment

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

Thanks @coquelin77 , I'm OK with this, maybe just add a note that the fix won't (shouldn't) be necessary after solving #784?

@ClaudiaComito ClaudiaComito merged commit 9751705 into master Jun 9, 2021
@mtar mtar deleted the bug/master-bcast-bug branch February 28, 2024 09:51
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.

None yet

2 participants