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

block_memcpy

block_memcpy[dst_addr_space: AddressSpace, src_addr_space: AddressSpace, //, num_bytes: Int, block_size: Int](dst_p: UnsafePointer[UInt8, address_space=dst_addr_space], src_p: UnsafePointer[UInt8, address_space=src_addr_space], thread_idx: Int)

Copies a memory area from source to destination. This function will use the vectorized store and load instructions to copy the memory area. User should make sure pointers are aligned to the simd width.