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

Support recording kernel launches of Launch.launch() onto wp.Tape() #522

Open
shi-eric opened this issue Feb 12, 2025 · 0 comments
Open
Assignees
Milestone

Comments

@shi-eric
Copy link
Contributor

Currently, Launch.launch() only launches the kernel. We need to add in the parts from wp.launch() that add the kernel to the tape and does gradient debugging checks:

warp/warp/context.py

Lines 5594 to 5605 in 56a290b

# record on tape if one is active
if runtime.tape and record_tape:
# record file, lineno, func as metadata
frame = inspect.currentframe().f_back
caller = {"file": frame.f_code.co_filename, "lineno": frame.f_lineno, "func": frame.f_code.co_name}
runtime.tape.record_launch(
kernel, dim, max_blocks, inputs, outputs, device, block_dim, metadata={"caller": caller}
)
# detect illegal inter-kernel read/write access patterns if verification flag is set
if warp.config.verify_autograd_array_access:
runtime.tape._check_kernel_array_access(kernel, fwd_args)

@shi-eric shi-eric self-assigned this Feb 12, 2025
@shi-eric shi-eric added this to the 1.7.0 milestone Feb 19, 2025
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

No branches or pull requests

1 participant