NVIDIA / NVIDIA/TensorRT-LLM

How can I use gen_cubins.py in the XQA directory to compile a cubin for SM101?

Open
#9,517 1 comment 0 reactions 1 assignee View on GitHub

@lowsfer is already working on this.

Since Dec 1, 2025.

Customized kernels question
Dominant language
Python
Stars
14.7k
Forks
2.8k
Avg merge
2d 23h
Merged PRs (30d)
489

Description

System Info

Hi, hope someone can help me.

I'm trying to compile a cubin for SM101 using gen_cubins.py in the XQA directory, but it seems that there is no macro definition for SM101 in the source code.

In mha.cu:

#if CUDA_ARCH == 860 || CUDA_ARCH == 890 || CUDA_ARCH == 1200
constexpr uint32_t preferedKHeadPartBytes = 64;
constant constexpr uint32_t cacheVTileSeqLen = 32;
#elif CUDA_ARCH == 800 || CUDA_ARCH == 870 || CUDA_ARCH == 900
constexpr uint32_t preferedKHeadPartBytes = 128;
constant constexpr uint32_t cacheVTileSeqLen = 64;

And in utils.cuh:

#ifdef CUDA_ARCH
#if CUDA_ARCH == 860 || CUDA_ARCH == 890 || CUDA_ARCH == 1200
constexpr uint32_t kMAX_SMEM_SIZE = (99u << 10);
#elif CUDA_ARCH == 800 || CUDA_ARCH == 870
constexpr uint32_t kMAX_SMEM_SIZE = (163u << 10);
#elif CUDA_ARCH == 900
constexpr uint32_t kMAX_SMEM_SIZE = (227u << 10);
#endif

Since SM101 is not covered by any of these conditions, the compilation cannot proceed.
Could anyone advise what macro values should be used for SM101, or how to properly add support for it?

Thanks!

How would you like to use TensorRT-LLM

I want to run inference of a [specific model](put Hugging Face link here). I don't know how to integrate it with TensorRT-LLM or optimize it for my use case.

Specific questions:

  • Model:
  • Use case (e.g., chatbot, batch inference, real-time serving):
  • Expected throughput/latency requirements:
  • Multi-GPU setup needed:
Before submitting a new issue...
  • Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.