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

Enable index_sort #306

Merged
merged 3 commits into from
Feb 1, 2023
Merged

Conversation

DamianSzwichtenberg
Copy link
Contributor

@DamianSzwichtenberg DamianSzwichtenberg commented Jan 31, 2023

Enable index_sort introduced in pyg-lib.

Related PR: pytorch_geometric:6554

@DamianSzwichtenberg
Copy link
Contributor Author

@rusty1s @mszarma @JakubPietrakIntel Please take a look.

rusty1s added a commit to pyg-team/pytorch_geometric that referenced this pull request Feb 1, 2023
Enable `index_sort` introduced in
[pyg-lib](https://pyg-lib.readthedocs.io/en/latest/modules/ops.html#pyg_lib.ops.index_sort).

Till now, sorting indices (1d tensor) have been working sequentially.
This PR enables the `index_sort` operation, which makes such a sort work
in parallel (parallelized radix sort).
Related PR:
[pytorch_sparse:306](rusty1s/pytorch_sparse#306)

In training benchmarks, data set load time was improved on average by
3.82 times, and training time by 1.06 times.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: rusty1s <matthias.fey@tu-dortmund.de>
@DamianSzwichtenberg
Copy link
Contributor Author

@rusty1s One PR left to go 😉

@rusty1s
Copy link
Owner

rusty1s commented Feb 1, 2023

@rusty1s One PR left to go 😉

Indeed, will merge tomorrow :D

@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2023

Codecov Report

Merging #306 (dd7e435) into master (ed2af8e) will decrease coverage by 0.05%.
The diff coverage is 76.92%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage   72.54%   72.50%   -0.05%     
==========================================
  Files          28       29       +1     
  Lines        1122     1131       +9     
==========================================
+ Hits          814      820       +6     
- Misses        308      311       +3     
Impacted Files Coverage Δ
torch_sparse/typing.py 50.00% <50.00%> (ø)
torch_sparse/utils.py 80.00% <83.33%> (ø)
torch_sparse/storage.py 20.58% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@rusty1s rusty1s merged commit a980efd into rusty1s:master Feb 1, 2023
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

3 participants