WebSafe 3.7github.com
|
|
🏠
Skip to content

Add a progressive backoff mechanism for barriers.#607

Open
devinamatthews wants to merge 1 commit intomasterfrom
barrier_backoff
Open

Add a progressive backoff mechanism for barriers.#607
devinamatthews wants to merge 1 commit intomasterfrom
barrier_backoff

Conversation

@devinamatthews
Copy link
Member

The mechanism(s) used for backoff must be defined by the configuration or configuration family. Up to three successive mechanisms are supported (e.g. pause/sched_yield/sleep).

Example (in config/<family>/bli_family_<family>.h):

#define BLIS_BARRIER_BACKOFF_1 30    // number of times to loop
#define BLIS_BARRIER_YIELD_1 pause();pause();pause();

//#define BLIS_BARRIER_BACKOFF_2    not needed, the last mechanism is looped forever 
#define BLIS_BARRIER_YIELD_2 sched_yield();

This PR supplants #82 and potentially addresses #604 (family-specific behavior still needs to be decided upon and implemented).

Families needing implementations:

  • Intel
  • AMD (same as Intel?)
  • ARM (v7 same as v8?)
  • POWER
The mechanism(s) used for backoff must be defined by the configuration or configuration family. Up to three successive mechanisms are supported (e.g. pause/sched_yield/sleep).
@jeffhammond
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants

Comments