Skip to content

Commit 605d872

Browse files
committed
update README'
with instructions on single file native submisions
1 parent 6d4752a commit 605d872

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ wget https://raw.githubusercontent.com/gpu-mode/reference-kernels/refs/heads/mai
6666
popcorn-cli submit --gpu A100 --leaderboard grayscale --mode leaderboard submission.py
6767
```
6868

69+
## Submission Format
70+
71+
Submissions are always a single Python file. If you want to submit native CUDA code, you can use PyTorch's `load_inline` feature (which uses nvcc) or the more experimental [`compile_kernel` API](https://x.com/gaunernst/status/2015242181049745607) for fast compilation. See [this example](https://github.com/gpu-mode/reference-kernels/blob/main/problems/pmpp_v2/vectoradd_py/solutions/correct/submission_cuda_inline.py) for reference.
72+
73+
For syntax highlighting of both C++ and Python in your IDE, you can use the [PyTorch Load Inline Highlighter](https://marketplace.visualstudio.com/items?itemName=msaroufim.pytorch-load-inline-highlighter) VS Code extension.
74+
6975
## Reference Kernels
7076

7177
All reference kernels are available at [gpu-mode/reference-kernels](https://github.com/gpu-mode/reference-kernels). Each problem directory contains:

0 commit comments

Comments
 (0)