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

Use dynamically allocated buffer instead of dynamically sized local array in kernel InitLocalMem #1790

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

MrBurmark
Copy link
Member

@MrBurmark MrBurmark commented Feb 10, 2025

Use dynamically allocated arrays

Use dynamically allocated buffer instead of dynamically sized local array in kernel InitLocalMem.
This is a problem because it is not valid C++ and causes large warnings to be generated when compiling with hip.

  • This PR is a refactoring
  • It does the following (modify list as needed):
    • Fixes large warnings in some cases

Sometimes the amount of memory is only known at runtime and
dynamically sized local arrays are not allowed in c++.
@MrBurmark MrBurmark requested a review from a team February 10, 2025 18:29
@MrBurmark MrBurmark force-pushed the bugfix/burmark1/InitLocalMem branch from 5361044 to 447bec4 Compare February 10, 2025 18:48
@MrBurmark MrBurmark changed the title Allocate local mem with new[]/delete[] Use dynamically allocated buffer instead of dynamically sized local array in kernel InitLocalMem Feb 11, 2025
@MrBurmark MrBurmark merged commit 647b177 into develop Feb 13, 2025
27 checks passed
@MrBurmark MrBurmark deleted the bugfix/burmark1/InitLocalMem branch February 13, 2025 22:11
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