Synchronization Primitives

Synchronization Primitives#

2026-10-07

1 min read time

Applies to Linux and Windows

This page covers the synchronization primitives extended API, providing thread-scoped atomics for coordinating host and device threads.

cuda::latch, cuda::barrier, cuda::counting_semaphore, cuda::binary_semaphore, and cuda::pipeline are not supported in libhipcxx. See Limitations and unsupported APIs.

Atomics

API

Description

Since

cuda::atomic

System-wide std::atomic objects and operations

libhipcxx 2.7

cuda::atomic_ref

System-wide std::atomic_ref objects and operations

libhipcxx 2.7