alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onAcc::scope::System Struct Reference

Scope for atomic and fence operations with system-wide visibility. More...

#include <scope.hpp>

Inheritance diagram for alpaka::onAcc::scope::System:

Static Public Member Functions

static std::string getName ()

Detailed Description

Scope for atomic and fence operations with system-wide visibility.

When used with atomic operations, all threads in the system (potentially across multiple devices) will see the updated value. When used with threadFence, it ensures that all writes from the current thread are visible to all other threads in the system.

Attention
System operations are only visible to other threads of the same device kind. Operations executed on a host compute device will not be visible to threads in, for example, CUDA/HIP or oneAPI kernels, and vice versa.
Note
This is the strongest scope, analogous to CUDA's atomicAdd_system and the strongest fence.

Definition at line 85 of file scope.hpp.

Member Function Documentation

◆ getName()

std::string alpaka::onAcc::scope::System::getName ( )
inlinestatic

Definition at line 87 of file scope.hpp.


The documentation for this struct was generated from the following file: