IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

ds_read_b128_imm_u32x4

ds_read_b128_imm_u32x4[offset_bytes: Int](base_ptr: UnsafePointer[BFloat16, address_space=AddressSpace.SHARED]) -> SIMD[DType.uint32, 4]

Issues ds_read_b128 with a comptime immediate offset and returns the loaded 128 bits as SIMD[DType.uint32, 4].

Includes pre-issue s_nop hazard guard, pre-issue s_waitcnt vmcnt(0) (DMA completion), and POST-issue s_waitcnt lgkmcnt(0) (LDS read completion). Caller bitcasts the i32 result.

Returns:

SIMD[DType.uint32, 4]