Skip to content

Instantly share code, notes, and snippets.

@shunting314
Created November 25, 2025 23:58
Show Gist options
  • Select an option

  • Save shunting314/cdd555bec63bc2d9c741da64b3d4e4fd to your computer and use it in GitHub Desktop.

Select an option

Save shunting314/cdd555bec63bc2d9c741da64b3d4e4fd to your computer and use it in GitHub Desktop.
import torch
torch._inductor.config.combo_kernels = True
torch._inductor.config.fx_graph_cache = False
@torch.compile
def f(x, y):
return x + 1, y * 2
# x = torch.randn(1024, device="cuda")
x = torch.randn(51200000 - 1, device="cuda")
y = torch.randn(2048, device="cuda")
f(x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment