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

Implement feature sort() #310

Closed
wants to merge 23 commits into from
Closed

Implement feature sort() #310

wants to merge 23 commits into from

Conversation

TheSlimvReal
Copy link
Contributor

Targets issue #144.

Sort is implemented using some parallel sorting algorithms with pivots and a balancing afterwards. Problem case is where axis = a.split because there the sorting is affected by the values of the other processes. In the end the returned tensor has the same shape as the local input tensor. The lower processes have the lower (higher) values, if sorting is performed ascending (descending) (MPI_WORLD.rank == 0 has the lowest (highest)).

The function currently does not return the indices of the elements in the original tensor because it is not clear if this should be a tensor equal to a.gshape holding the information for all values or just for the local elements. The global shape one would mean a very high memory consumption for big matrices while the local one would mean more communication between the processes. Is this something that should be implemented and if yes, in which way?

@Markus-Goetz
Copy link
Member

Bump, build fail

@codecov-io
Copy link

codecov-io commented Jun 25, 2019

Codecov Report

Merging #310 into master will decrease coverage by 0.38%.
The diff coverage is 84.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #310      +/-   ##
==========================================
- Coverage   96.73%   96.35%   -0.39%     
==========================================
  Files          49       49              
  Lines        7167     7403     +236     
==========================================
+ Hits         6933     7133     +200     
- Misses        234      270      +36
Impacted Files Coverage Δ
heat/core/tests/test_manipulations.py 100% <100%> (ø) ⬆️
heat/core/tests/test_communication.py 97.76% <100%> (ø) ⬆️
heat/core/communication.py 94.48% <50%> (+0.04%) ⬆️
heat/core/manipulations.py 87.66% <77.21%> (-11.02%) ⬇️

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 5cc764a...215725f. Read the comment docs.

@TheSlimvReal TheSlimvReal deleted the feature/144-sort branch June 25, 2019 11:54
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