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

[HIPIFY][#1776][perl][feature][fix] Tuned the hipify-perl performance up to 450% #1823

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

emankov
Copy link
Collaborator

@emankov emankov commented Jan 10, 2025

  • [IMP] Changing foreach to while (...) = each gave 450% performance improvement; for example, 58 sec vs 13 sec
  • [FIX] Eliminated erroneous warnings like unsupported MIOpen identifier: cudnnOpTensor when the actual identifier is cudnnOpTensor_t
  • Decreased the generated file size by 3%
  • Updated the regenerated hipify-perl script

…rmance up to `450%`

+ [IMP] Changing `foreach` to `while (...) = each` gave 450% performance improvement; for example, 58 sec vs 13 sec
+ [FIX] Eliminated erroneous warnings like `unsupported MIOpen identifier: cudnnOpTensor` when the actual identifier is `cudnnOpTensor_t`
+ Decreased the generated file size by 3%
+ Updated the regenerated `hipify-perl` script
@emankov emankov added enhancement Enhancement fix It fixes bug feature Feature request or implementation perl perl-related labels Jan 10, 2025
@emankov emankov self-assigned this Jan 10, 2025
@emankov emankov requested a review from searlmc1 as a code owner January 10, 2025 22:56
@emankov emankov merged commit 9477446 into ROCm:amd-staging Jan 10, 2025
1 check was pending
emankov added a commit to emankov/HIPIFY that referenced this pull request Jan 23, 2025
…instead of `while` in some loops

[Reason]
+ Those `while` loops were actually not executed without any even warning from Perl
+ It looks like the `arrays` provided in `while` statements were treated as `maps`

[Results]
+ Actual performance improvement is about 10%, instead of 450% hastily announced in ROCm#1823
emankov added a commit that referenced this pull request Jan 23, 2025
[HIPIFY][perl][#1776][#1823][fix] Return to using `for each` instead of `while` in some loops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement feature Feature request or implementation fix It fixes bug perl perl-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant