MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / prefetch_tma_descriptor

Function prefetch_tma_descriptor

include/descriptor.h:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88using TmaDescriptor = CUtensorMap;
89
90HOST_DEVICE
91void
92prefetch_tma_descriptor(TmaDescriptor const* desc_ptr)
93{
94 uint64_t gmem_int_desc = reinterpret_cast<uint64_t>(desc_ptr);
95 // Prefetch TMA Descriptor using generic addressing (i.e. no specific state space: const or param)
96 asm volatile (
97 "prefetch.tensormap [%0];"
98 :
99 : "l"(gmem_int_desc)
100 : "memory");
101}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected