HighMap library (C++)
Loading...
Searching...
No Matches
hmap::ThreadedCollectiveState Class Reference

Shared synchronization state for multi-threaded tile communication. More...

#include <communicator.hpp>

Public Member Functions

 ThreadedCollectiveState (int num_threads)
float all_reduce (size_t seq, float val, ReduceOp op)
std::vector< float > all_union (size_t seq, const std::vector< float > &vals)
void barrier (size_t seq)
int get_total_threads () const
void register_tile (int tile_idx, Array *tile, const UvTile &region)
Array * get_registered_tile (int tile_idx) const
const UvTile * get_registered_region (int tile_idx) const

Detailed Description

Shared synchronization state for multi-threaded tile communication.

Constructor & Destructor Documentation

◆ ThreadedCollectiveState()

hmap::ThreadedCollectiveState::ThreadedCollectiveState ( int num_threads)
explicit

Member Function Documentation

◆ all_reduce()

float hmap::ThreadedCollectiveState::all_reduce ( size_t seq,
float val,
ReduceOp op )

◆ all_union()

std::vector< float > hmap::ThreadedCollectiveState::all_union ( size_t seq,
const std::vector< float > & vals )

◆ barrier()

void hmap::ThreadedCollectiveState::barrier ( size_t seq)

◆ get_total_threads()

int hmap::ThreadedCollectiveState::get_total_threads ( ) const

◆ register_tile()

void hmap::ThreadedCollectiveState::register_tile ( int tile_idx,
Array * tile,
const UvTile & region )

◆ get_registered_tile()

Array * hmap::ThreadedCollectiveState::get_registered_tile ( int tile_idx) const

◆ get_registered_region()

const UvTile * hmap::ThreadedCollectiveState::get_registered_region ( int tile_idx) const

The documentation for this class was generated from the following files: