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

Scope for atomic and fence operations visible only within the same thread block. More...

#include <scope.hpp>

Inheritance diagram for alpaka::onAcc::scope::Block:

Static Public Member Functions

static std::string getName ()

Detailed Description

Scope for atomic and fence operations visible only within the same thread block.

When used with atomic operations (e.g., atomicAdd), only threads within the same block 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 same block.

Note
Analogous to CUDA's atomicAdd_block and threadFence_block.

Definition at line 43 of file scope.hpp.

Member Function Documentation

◆ getName()

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

Definition at line 45 of file scope.hpp.


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