MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / ldgStream

Function ldgStream

plugin/instanceNormalizationPlugin/instanceNormCommon.h:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150template <typename T>
151DEVICE_FUNCTION void ldgStream(int32_t (&dst)[1], T const* gmem)
152{
153 uint32_t tmp;
154 asm volatile("ld.global.cs.nc.s32 %0, [%1];" : "=r"(tmp) : "l"((uint32_t const*) gmem));
155 dst[0] = tmp;
156}
157
158template <typename T>
159DEVICE_FUNCTION void ldg(int32_t (&dst)[2], T const* gmem)

Callers

nothing calls this directly

Calls 1

toFloatFunction · 0.85

Tested by

no test coverage detected