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_create_uniqueid

shmem_create_uniqueid(server_ip: String, server_port: Int32) -> SHMEMUniqueID

Create a unique ID for rocSHMEM TCP bootstrap.

Generates a SHMEMUniqueID that must be identical across all participating PEs to establish communication. If using the same Server IP and Port, it will be identical.

Arguments: server_ip: the TCP bootstrap server that participating nodes connect to. server_port: the TCP bootstrap server port that participating nodes communicate over.

Returns:

SHMEMUniqueID: A SHMEMUniqueID to be passed to shmem_init_thread_tcp.