Skip to content

Conversation

@vinx13
Copy link
Member

@vinx13 vinx13 commented Mar 22, 2023

This PR added Relax VM builtin functions to execute with CUDA graph.

  • vm.builtin.cuda_graph.get_cached_alloc: Allocate and cache storage objects for future vm invocation
  • vm.builtin.cuda_graph.run_or_capture: Launched captured CUDA graph or capture the CUDA graph using CUDA API and save in the cache

The graph rewriting to enable CUDA graph backend will be done in a separate PR.

cc @tqchen @spectrometerHBH @MasterJH5574

@tvm-bot
Copy link
Collaborator

tvm-bot commented Mar 22, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@vinx13 vinx13 force-pushed the unity-cuda-graph-runtime branch 2 times, most recently from c58d994 to 2364c36 Compare March 22, 2023 20:27
@vinx13 vinx13 marked this pull request as ready for review March 22, 2023 20:29
@vinx13 vinx13 force-pushed the unity-cuda-graph-runtime branch from 2364c36 to 47b8560 Compare March 22, 2023 20:55
@tqchen tqchen merged commit 559fac7 into apache:unity Mar 22, 2023
tqchen pushed a commit that referenced this pull request Apr 1, 2023
This PR added Relax VM builtin functions to execute with CUDA graph.

- vm.builtin.cuda_graph.get_cached_alloc: Allocate and cache storage objects for future vm invocation
- vm.builtin.cuda_graph.run_or_capture: Launched captured CUDA graph or capture the CUDA graph using CUDA API and save in the cache
The graph rewriting to enable CUDA graph backend will be done in a separate PR.
tqchen pushed a commit that referenced this pull request Apr 1, 2023
This PR added Relax VM builtin functions to execute with CUDA graph.

- vm.builtin.cuda_graph.get_cached_alloc: Allocate and cache storage objects for future vm invocation
- vm.builtin.cuda_graph.run_or_capture: Launched captured CUDA graph or capture the CUDA graph using CUDA API and save in the cache
The graph rewriting to enable CUDA graph backend will be done in a separate PR.
tqchen pushed a commit that referenced this pull request Apr 1, 2023
This PR added Relax VM builtin functions to execute with CUDA graph.

- vm.builtin.cuda_graph.get_cached_alloc: Allocate and cache storage objects for future vm invocation
- vm.builtin.cuda_graph.run_or_capture: Launched captured CUDA graph or capture the CUDA graph using CUDA API and save in the cache
The graph rewriting to enable CUDA graph backend will be done in a separate PR.
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