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

Performance Improvement: Offloading IOAdapter Resize and FlowFormer++ Compute Weight to CUDA #58

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

haku-huang
Copy link
Contributor

Summary

This pull request introduces a significant performance improvement by offloading the resize operation in IOAdapter and the compute_weight operation in FlowFormer++ to CUDA, whenever CUDA is available. This change aims to reduce CPU usage substantially and leverage GPU acceleration for enhanced processing speed.

Changes

  • Modified the resize method in IOAdapter to detect CUDA availability and execute on GPU when possible.
  • Updated FlowFormer++'s compute_weight function to perform computations on CUDA instead of the CPU.

@hmorimitsu
Copy link
Owner

Thank you for the PR. Could you also update the compute_weight function in flowformer and matchflow models?

@hmorimitsu
Copy link
Owner

Can you also add the argument indexing="ij" in torch.meshgrid to avoid warnings?

Copy link
Owner

@hmorimitsu hmorimitsu left a comment

Choose a reason for hiding this comment

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

Looks OK, thanks for the contribution.

@hmorimitsu hmorimitsu merged commit b7874ab into hmorimitsu:main Feb 21, 2024
9 checks passed
@haku-huang haku-huang deleted the dev branch February 23, 2024 03:50
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.

2 participants