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

Function set_block_rank

include/common.h:426–432  ·  view source on GitHub ↗

Set the destination block-ID in cluster for a given SMEM Address

Source from the content-addressed store, hash-verified

424
425// Set the destination block-ID in cluster for a given SMEM Address
426DEVICE uint32_t set_block_rank(uint32_t smemAddr, uint32_t rank) {
427 uint32_t result;
428 asm volatile("mapa.shared::cluster.u32 %0, %1, %2;\n"
429 : "=r"(result)
430 : "r"(smemAddr), "r"(rank));
431 return result;
432}
433
434// Returns the relative dim3 block rank local to the cluster.
435DEVICE dim3 block_id_in_cluster() {

Callers 1

complete_transactionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected