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

Add call stack management #3651

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Add call stack management #3651

merged 1 commit into from
Nov 20, 2024

Conversation

matyas-streamhpc
Copy link

No description provided.

@matyas-streamhpc matyas-streamhpc self-assigned this Oct 29, 2024
@matyas-streamhpc matyas-streamhpc changed the base branch from hip_runtime_api_how-to to docs/develop October 29, 2024 20:03
@matyas-streamhpc matyas-streamhpc changed the base branch from docs/develop to hip_runtime_api_how-to October 29, 2024 20:06
@neon60 neon60 force-pushed the call-stack branch 5 times, most recently from 6ebbb51 to ed54ad1 Compare October 30, 2024 16:32
@neon60 neon60 marked this pull request as ready for review October 30, 2024 16:32
@neon60 neon60 requested a review from MKKnorr October 30, 2024 16:32
Copy link

@MKKnorr MKKnorr left a comment

Choose a reason for hiding this comment

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

This could also additionally benefit from a section explaining, that the higher memory requirement of the GPUs call stack is why the call stack per thread is small compared to that of a CPU, and that this is the reason why (deep) recursion is not recommended, even if it's possible.

It would also be good to mention, that most device function calls are inlined to prevent excessive stack growth (and maybe for performance reasons)

docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Show resolved Hide resolved
docs/sphinx/_toc.yml.in Show resolved Hide resolved
Copy link

@randyh62 randyh62 left a comment

Choose a reason for hiding this comment

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

Left some comments, but looks good to me overall.

docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Outdated Show resolved Hide resolved
docs/how-to/hip_runtime_api/call_stack.rst Show resolved Hide resolved
@neon60 neon60 requested a review from randyh62 November 12, 2024 16:01
@neon60 neon60 deleted the branch docs/develop November 18, 2024 17:39
@neon60 neon60 closed this Nov 18, 2024
@neon60 neon60 reopened this Nov 18, 2024
@neon60 neon60 changed the base branch from hip_runtime_api_how-to to docs/develop November 18, 2024 17:43
@neon60 neon60 force-pushed the call-stack branch 4 times, most recently from bc51f5b to 0fa1614 Compare November 20, 2024 09:52
@neon60 neon60 merged commit 558fb2e into docs/develop Nov 20, 2024
4 checks passed
@neon60 neon60 deleted the call-stack branch November 21, 2024 00:23
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.

4 participants