Add host API for enqueuing barrier on given stream (#274)

* add host API for enqueuing barrier on given stream

[ROCm/rocshmem commit: a44b581997]
Цей коміт міститься в:
Dimple Prajapati
2025-10-15 14:29:07 -07:00
зафіксовано GitHub
джерело fc73e4f858
коміт 6c4325d131
10 змінених файлів з 53 додано та 0 видалено
+7
Переглянути файл
@@ -341,6 +341,13 @@ __host__ void rocshmem_quiet();
*/
__host__ void rocshmem_barrier_all();
/**
* @brief enqueues a collective barrier on given stream.
*
* @return void
*/
__host__ void rocshmem_barrier_all_on_stream(hipStream_t stream);
/**
* @brief registers the arrival of a PE at a barrier.
* The caller is blocked until the synchronization is resolved.
+8
Переглянути файл
@@ -599,6 +599,14 @@ __host__ int rocshmem_ctx_double_prod_reduce(
rocshmem_ctx_t ctx, rocshmem_team_t team, double *dest, const double *source,
int nreduce);
/**
* @brief kernel for performing a barrier synchronization.
* Caller enqueues the kernel on given stream
*
* @return void
*/
__global__ ATTR_NO_INLINE void rocshmem_barrier_all_kernel();
/**
* @brief perform a collective barrier between all PEs in the system.
* The caller is blocked until the barrier is resolved.