Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opal/runtime/opal_progress.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ opal_progress_finalize(void)
void
opal_progress(void)
{
static volatile uint64_t num_calls = 0;
static volatile uint32_t num_calls = 0;
size_t i;
int events = 0;

Expand Down Expand Up @@ -225,7 +225,7 @@ opal_progress(void)
events += (callbacks[i])();
}

if ((OPAL_THREAD_ADD64((volatile int64_t *) &num_calls, 1) & callbacks_lp_mask) == 0) {
if ((OPAL_THREAD_ADD32((volatile int32_t *) &num_calls, 1) & callbacks_lp_mask) == 0) {
/* run low priority callbacks once every 8 calls to opal_progress() */
for (i = 0 ; i < callbacks_lp_len ; ++i) {
events += (callbacks_lp[i])();
Expand Down