ROC_SHMEM icon indicating copy to clipboard operation
ROC_SHMEM copied to clipboard

[Documentation]: alternative for `rocshmem_wg_init` being deprecated

Open jackos opened this issue 3 months ago • 1 comments

Description of errors

Hi, I'm trying to understand why rocshmem_wg_init is being deprecated, the docs say it's going away but don't provide an alternative. If we want to spawn threads and have a GPU associated with each thread, is there an alternative way to do that, instead of associating a process per GPU and launching with something like mpirun?

Attach any links, screenshots, or additional evidence you think will be helpful.

https://rocm.docs.amd.com/projects/rocSHMEM/en/develop/api/init.html#_CPPv416rocshmem_wg_initv

jackos avatar Oct 17 '25 16:10 jackos

Hello, the rocshmem_wg_init is deprecated because its features were found to duplicate what rochsmem_wg_ctx_create provides. The core feature of associating a context to a specific workgroup on a GPU remains available even without calling rocshmem_wg_init.

The ctx feature is orthogonal to using rocSHMEM in multiGPU per PE mode. Multi-GPU per PE is currently not supported.

abouteiller avatar Oct 20 '25 19:10 abouteiller

Thanks @abouteiller that works, closing

jackos avatar Nov 04 '25 00:11 jackos