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

Function warp_id_in_warp_group

include/common.h:447–449  ·  view source on GitHub ↗

Returns the warp id in warp group

Source from the content-addressed store, hash-verified

445
446// Returns the warp id in warp group
447DEVICE int warp_id_in_warp_group() {
448 return warp_id_in_block() % (WARP_GROUP_SIZE / WARP_SIZE);
449}
450
451// A generic Swizzle functor
452/* 0bxxxxxxxxxxxxxxxYYYxxxxxxxZZZxxxx

Callers

nothing calls this directly

Calls 1

warp_id_in_blockFunction · 0.85

Tested by

no test coverage detected