argobots icon indicating copy to clipboard operation
argobots copied to clipboard

Is Apple M2 (arm64) supported?

Open mdorier opened this issue 1 year ago • 2 comments

I'm trying Argobots programs that work fine on Linux on my MacBook Pro M2 and I'm getting segfaults in various places. One happens when calling ABT_xstream_set_main_sched in this piece of code (run right after ABT_init):

ret = ABT_sched_create_basic(ABT_SCHED_BASIC_WAIT, 0, NULL, ABT_SCHED_CONFIG_NULL, &self_sched);
assert(ret == ABT_SUCCESS);
ret = ABT_xstream_self(&self_xstream);
assert(ret == ABT_SUCCESS);
ret = ABT_xstream_set_main_sched(self_xstream, self_sched);
assert(ret == ABT_SUCCESS)

I found another segfault happening when calling ABT_thread_join. Is Apple M2 not supported?

mdorier avatar Jun 22 '23 01:06 mdorier

@mdorier were you running argobots@main or the last release?

Just wondering if it included these fixes https://github.com/pmodels/argobots/pull/325 ?

carns avatar Jun 22 '23 01:06 carns

Oh my, I spent the entire day on this and didn't think of trying the main branch (granted, I only figured the segfault was in Argobots an hour ago). But... yes, the main branch has no problem.

We really need a point release of Argobots with those changes.

mdorier avatar Jun 22 '23 02:06 mdorier