Skip to content

opal/mca/threads/argobots: fix compilation error #7712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2020
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/mca/threads/argobots/threads_argobots_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void opal_mutex_create(struct opal_mutex_t *m)
}
void *null_ptr = OPAL_ABT_MUTEX_NULL;
if (opal_atomic_compare_exchange_strong_ptr(
(intptr_t *)&m->m_lock_argobots, (intptr_t *)&null_ptr,
(opal_atomic_intptr_t *)&m->m_lock_argobots, (intptr_t *)&null_ptr,
(intptr_t)abt_mutex)) {
/* mutex is successfully created and substituted. */
return;
Expand All @@ -121,7 +121,7 @@ static void opal_cond_create(opal_cond_t *cond)
ABT_cond new_cond;
ABT_cond_create(&new_cond);
void *null_ptr = OPAL_ABT_COND_NULL;
if (opal_atomic_compare_exchange_strong_ptr((intptr_t *)cond,
if (opal_atomic_compare_exchange_strong_ptr((opal_atomic_intptr_t *)cond,
(intptr_t *)&null_ptr,
(intptr_t)new_cond)) {
/* cond is successfully created and substituted. */
Expand Down