IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo trait

NearComputeGeneralPurposeScratchpadExecutionConfig

An ExecutionConfig that requests dynamic near-compute scratchpad memory, which is shared memory on GPUs.

Implemented traitsโ€‹

AnyType, ExecutionConfig

Required methodsโ€‹

get_near_compute_scratchpad_usageโ€‹

def get_near_compute_scratchpad_usage(self) -> Int

Returns the dynamic scratchpad memory to allocate.

Returns:

Int: The number of bytes of dynamic shared memory per thread block.

Was this page helpful?