From 63d52b73c8bc530a55a99ebc220d8ce03daf1a53 Mon Sep 17 00:00:00 2001 From: Avinash Kethineedi Date: Mon, 30 Jun 2025 13:38:24 -0500 Subject: [PATCH] Fix pSync buffer initialization in IPC(#180) - Initialize the entire pSync buffer with the default synchronization value [ROCm/rocshmem commit: 6dba25389047554b19412417b2ee82e9e89f4b69] --- projects/rocshmem/src/ipc/backend_ipc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocshmem/src/ipc/backend_ipc.cpp b/projects/rocshmem/src/ipc/backend_ipc.cpp index 934b07555c..6aea27b784 100644 --- a/projects/rocshmem/src/ipc/backend_ipc.cpp +++ b/projects/rocshmem/src/ipc/backend_ipc.cpp @@ -454,7 +454,7 @@ void IPCBackend::rocshmem_collective_init() { /* * Initialize the barrier synchronization array with default values. */ - for (int i = 0; i < num_pes; i++) { + for (int i = 0; i < ROCSHMEM_BARRIER_SYNC_SIZE; i++) { barrier_sync[i] = ROCSHMEM_SYNC_VALUE; }