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

Features/481 halos #541

Merged
merged 22 commits into from Apr 24, 2020
Merged

Features/481 halos #541

merged 22 commits into from Apr 24, 2020

Conversation

krajsek
Copy link
Member

@krajsek krajsek commented Apr 9, 2020

Description

This PR implements a basic halo scheme needed for inter rank operations like convolution.
The halos are concatenated to the array by request. Further features will be implemented by Luca.

Issue/s resolved: #481

Due Diligence

  • [x ] All split configurations tested
  • [x ] 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 Apr 9, 2020

Codecov Report

Merging #541 into master will increase coverage by 0.01%.
The diff coverage is 98.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #541      +/-   ##
==========================================
+ Coverage   96.42%   96.43%   +0.01%     
==========================================
  Files          75       75              
  Lines       14979    15092     +113     
==========================================
+ Hits        14443    14554     +111     
- Misses        536      538       +2     
Impacted Files Coverage Δ
heat/core/dndarray.py 96.69% <95.55%> (-0.08%) ⬇️
heat/core/tests/test_dndarray.py 99.36% <100.00%> (+0.05%) ⬆️
heat/core/tiling.py 96.35% <100.00%> (ø)

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 9da4f99...34d19ad. Read the comment docs.

heat/core/dndarray.py Outdated Show resolved Hide resolved
heat/core/dndarray.py Outdated Show resolved Hide resolved
heat/core/dndarray.py Outdated Show resolved Hide resolved
heat/core/dndarray.py Outdated Show resolved Hide resolved
heat/core/dndarray.py Show resolved Hide resolved
heat/core/dndarray.py Show resolved Hide resolved
self.__halo_prev = res_next
self.__ishalo = True

def cathalo(self):
Copy link
Member

Choose a reason for hiding this comment

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

cat_halo()?

private?

Copy link
Member Author

@krajsek krajsek Apr 22, 2020

Choose a reason for hiding this comment

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

I do not see a reason not to allow users to concat halos for their applications. But we can make it also private I you think this is more reasonable

Copy link
Member Author

Choose a reason for hiding this comment

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

cat_halo fixed

Copy link
Member

Choose a reason for hiding this comment

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

okay here I am definitely going with a private method. A user should not be able to do this on his/her own.

Copy link
Member

Choose a reason for hiding this comment

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

Bump

heat/core/dndarray.py Outdated Show resolved Hide resolved
@krajsek krajsek merged commit f71b83f into master Apr 24, 2020
@coquelin77 coquelin77 mentioned this pull request Apr 24, 2020
4 tasks
@Markus-Goetz Markus-Goetz deleted the features/481-halos branch April 30, 2020 15:18
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.

introduce Halos
2 participants