Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add trace with JIT example#2541

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mawad-amd wants to merge5 commits intomain
base:main
Choose a base branch
Loading
frommuhaawad/trace-jit
Draft

Conversation

@mawad-amd
Copy link
Collaborator

@mawad-amdmawad-amd commentedAug 27, 2025
edited
Loading

Initial version of trace integration with JIT. Here is the output:

In code, it looks like this:

ifargs.trace_size>0:
trace.set_trace_size(args.trace_size)
trace.start_trace()
# JIT-compile the kernel then launches the kernel with the given arguments
vector_scalar_mul(input0,scalar,output)
# Stop tracing and save results if tracing was enabled
ifargs.trace_size>0:
trace_filename=f"trace_output_{args.num_elements}_{args.data_type}.json"
trace.stop_trace(trace_filename)
print(f"Tracing completed and saved to{trace_filename}")

And this:

worker=Worker(
core_body,
fn_args=[of_in.cons(),of_factor.cons(),of_out.prod(),scale],
trace=1iftrace.get_trace_size()>0else0,
)
# Runtime operations to move data to/from the AIE-array
rt=Runtime()
withrt.sequence(tensor_ty,scalar_ty,tensor_ty)as (A,F,C):
iftrace.get_trace_size()>0:
rt.enable_trace(trace.get_trace_size())

I would have liked to hide this away too but it's not straight forward at the moment because of how the default workflow works (i.e., I can't simply callenable_trace for the runtime sequence if tracing is enabled in the backend). There are also other complications for tracing that Jack has brought up.

Output trace visualization:
image

@mawad-amd
Copy link
CollaboratorAuthor

@jackl-xilinx@AndraBisca@jgmelber This is an initial draft for trace support in JIT.

@mawad-amdmawad-amd mentioned this pull requestAug 28, 2025
@mawad-amdmawad-amd mentioned this pull requestOct 2, 2025
6 tasks
@hunhoffehunhoffe added this to theJIT/Runtime/Compilation Refactor milestoneNov 10, 2025
@hunhoffehunhoffe removed this from theJIT/Runtime/Compilation Refactor milestoneNov 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AndraBiscaAndraBiscaAwaiting requested review from AndraBiscaAndraBisca will be requested when the pull request is marked ready for reviewAndraBisca is a code owner

@jackl-xilinxjackl-xilinxAwaiting requested review from jackl-xilinxjackl-xilinx will be requested when the pull request is marked ready for reviewjackl-xilinx is a code owner

@andrejandrejAwaiting requested review from andrejandrej will be requested when the pull request is marked ready for reviewandrej is a code owner

@pvasireddy-amdpvasireddy-amdAwaiting requested review from pvasireddy-amdpvasireddy-amd will be requested when the pull request is marked ready for reviewpvasireddy-amd is a code owner

@jgmelberjgmelberAwaiting requested review from jgmelberjgmelber will be requested when the pull request is marked ready for reviewjgmelber is a code owner

@hunhoffehunhoffeAwaiting requested review from hunhoffehunhoffe will be requested when the pull request is marked ready for reviewhunhoffe is a code owner

@denolfdenolfAwaiting requested review from denolfdenolf will be requested when the pull request is marked ready for reviewdenolf is a code owner

@fifieldfifieldAwaiting requested review from fifieldfifield will be requested when the pull request is marked ready for reviewfifield is a code owner

Copilot code reviewCopilotAwaiting requested review from CopilotCopilot will automatically review once the pull request is marked ready for review

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mawad-amd@hunhoffe

[8]ページ先頭

©2009-2025 Movatter.jp