Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::LoopSchedule Class Reference

#include <openmp_threadpool.h>

Collaboration diagram for Realm::LoopSchedule:
[legend]

Public Member Functions

void initialize (int _num_workers)
bool start_static (int64_t start, int64_t end, int64_t incr, int64_t chunk, int thread_id, int64_t &span_start, int64_t &span_end)
bool next_static (int64_t &span_start, int64_t &span_end)
void start_dynamic (int64_t start, int64_t end, int64_t incr, int64_t chunk)
bool next_dynamic (int64_t &span_start, int64_t &span_end, int64_t &stride)
void end_loop (bool wait)

Protected Attributes

int num_workers
atomic< uint64_t > loop_pos
atomic< uint64_t > loop_limit
atomic< int64_t > loop_base
atomic< int64_t > loop_incr
atomic< int64_t > loop_chunk
atomic< int > loop_barrier

Member Function Documentation

◆ end_loop()

void Realm::LoopSchedule::end_loop ( bool wait)

◆ initialize()

void Realm::LoopSchedule::initialize ( int _num_workers)

◆ next_dynamic()

bool Realm::LoopSchedule::next_dynamic ( int64_t & span_start,
int64_t & span_end,
int64_t & stride )

◆ next_static()

bool Realm::LoopSchedule::next_static ( int64_t & span_start,
int64_t & span_end )

◆ start_dynamic()

void Realm::LoopSchedule::start_dynamic ( int64_t start,
int64_t end,
int64_t incr,
int64_t chunk )

◆ start_static()

bool Realm::LoopSchedule::start_static ( int64_t start,
int64_t end,
int64_t incr,
int64_t chunk,
int thread_id,
int64_t & span_start,
int64_t & span_end )

Member Data Documentation

◆ loop_barrier

atomic<int> Realm::LoopSchedule::loop_barrier
protected

◆ loop_base

atomic<int64_t> Realm::LoopSchedule::loop_base
protected

◆ loop_chunk

atomic<int64_t> Realm::LoopSchedule::loop_chunk
protected

◆ loop_incr

atomic<int64_t> Realm::LoopSchedule::loop_incr
protected

◆ loop_limit

atomic<uint64_t> Realm::LoopSchedule::loop_limit
protected

◆ loop_pos

atomic<uint64_t> Realm::LoopSchedule::loop_pos
protected

◆ num_workers

int Realm::LoopSchedule::num_workers
protected

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