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

ds_read_tr16_b64

ds_read_tr16_b64[dtype: DType, //](shared_ptr: UnsafePointer[Scalar[dtype], address_space=AddressSpace.SHARED]) -> SIMD[dtype, 4]

Reads a 64-bit LDS transpose block using TR16 layout and returns SIMD[dtype, 4] of 16-bit types.

Notes:

  • Only supported on AMD GPUs.
  • Maps directly to llvm.amdgcn.ds.read.tr16.b64 intrinsic.
  • Result width is fixed to 4 elements of dtype.

Parameters:

  • dtype (DType): Data type of the elements (must be 16-bit type).

Args:

Returns:

SIMD[dtype, 4]: SIMD[dtype, 4] of 16-bit types.