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

shmem_module_finalize

shmem_module_finalize(device_function: DeviceFunction[target=device_function.target, compile_options=device_function.compile_options, link_options=device_function.link_options, _ptxas_info_verbose=device_function._ptxas_info_verbose])

Finalizes the device state in the compiled function module and cleans up NVSHMEM operations. This should be called when NVSHMEM operations are no longer needed for the given device function.

Args:

Raises:

String: If module finalization fails.