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

How to show PJRT Call Stack #8786

Open
yuanfz98 opened this issue Mar 4, 2025 · 4 comments
Open

How to show PJRT Call Stack #8786

yuanfz98 opened this issue Mar 4, 2025 · 4 comments

Comments

@yuanfz98
Copy link

yuanfz98 commented Mar 4, 2025

❓ Questions and Help

I wounder how to print PJRT Call Stack. Thanks

@ysiraichi
Copy link
Collaborator

Thank you for your question.
What exactly do you mean by that? What would you expect to see from such a log?
Could you provide an example?

@yuanfz98
Copy link
Author

yuanfz98 commented Mar 6, 2025

Thank you for your question. What exactly do you mean by that? What would you expect to see from such a log? Could you provide an example?

Thanks for your reply. I mean the API call stack like :

PJRT_Client_Create
PJRT_Client_Compile
PJRT_Buffer_CopyToMemory
PJRT_Buffer_CopyToMemory
PJRT_Buffer_ToHostBuffer
PJRT_Client_Destroy

So that I know what api is called from XLA frontend.

@ysiraichi
Copy link
Collaborator

I don't think there's currently a way to do that within PyTorch/XLA. Maybe OpenXLA exposes some log configuration? @tengyifei @ManfeiBai @zpcore

@tengyifei
Copy link
Collaborator

I also don't know of any way to print the call stack like that. @yuanfz98 could you elaborate what are you trying to achieve? Are you trying to capture memory related metrics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants