Skip to content

[Bug] SM100 HC-prenorm TMEM deallocation fault #479

Open

Description

@henrylhtsang

Environment

B200; DeepSeek V4.1 Flash.

Observed behavior

CUDA fault in sm100_tf32_hc_prenorm_gemm_impl:

CUDBG_EXCEPTION_WARP_TMEM_ACCESS_CHECK (20)
Tensor Memory column 3136 being dealloced by instruction
tcgen05.dealloc is not allocated. Columns allocated are: 192-223.

The kernel ignores the returned TMEM base and calls free(0, kNumTmemCols). This assumes the allocated TMEM base is always zero. Is that assumption guaranteed when kernels run concurrently on separate CUDA streams?

CUTLASS uses the returned base:

tmem_allocator.allocate(cute::TMEM::Sm100TmemCapacityColumns, &shared_storage.tmem_base_ptr);
// After __syncthreads():
tCtAcc.data() = shared_storage.tmem_base_ptr;

Then frees that same base:

tmem_allocator.free(shared_storage.tmem_base_ptr, cute::TMEM::Sm100TmemCapacityColumns);

Reproduction

No standalone reproducer or run with an upstream DeepGEMM build yet. Causality is unconfirmed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions