TBB issue on an arm-based Mac

84 views
Skip to first unread message

Zhao Li

unread,
Jan 31, 2024, 2:18:14 PM1/31/24
to deal.II User Group
Hello everyone,

I encountered a TBB issue when I was testing two deal.II programs that worked very well on the Linux OS. The programs don't stop at the first time step. Instead, after several time steps, the programs stopped. 

The errors occurred randomly. They were killed by different failed TBB assertions during testing.

I'm using dealii-9.5.0 on a Macbook Pro with an M2 max chip. The OS version is 14.2.1. Xcode version is Version 15.1.

Some errors printed on the console by program 1 are like:

Timestep 250
Assertion false failed on line 541 of file ../../src/tbb/custom_scheduler.h
Detailed description: task is in READY state upon return from method execute()


or

Timestep 40
Assertion 1L<<t->state() & (1L<<task::allocated|1L<<task::ready|1L<<task::reexecute) failed on line 407 of file ../../src/tbb/custom_scheduler.h

or 

Timestep 109
Assertion t->state()==task::freed failed on line 351 of file ../../src/tbb/scheduler.cpp

or 

Timestep 10
Assertion 1L << t.state() & (1L << task::executing | 1L << task::allocated) failed on line 748 of file ../../src/tbb/scheduler.h

Some errors printed on the console by program 2 are like:

Timestep 12:
...... 
Adaptive refinement-9:
Assertion 1L<<t->state() & (1L<<task::allocated|1L<<task::ready|1L<<task::reexecute) failed on line 407 of file ../../src/tbb/custom_scheduler.h

or 

Timestep 12:
...... 
Adaptive refinement-10:
Assertion 1L << t.state() & (1L << task::executing | 1L << task::allocated) failed on line 748 of file ../../src/tbb/scheduler.h

I've been stuck on this TBB issue for a while. Would you be able to give me some hints on solving this problem? I would really appreciate it.

Best Regards,
Zhao

Wolfgang Bangerth

unread,
Feb 1, 2024, 6:59:04 PM2/1/24
to dea...@googlegroups.com
On 1/31/24 12:10, Zhao Li wrote:
>
>
> I've been stuck on this TBB issue for a while. Would you be able to give me
> some hints on solving this problem? I would really appreciate it.

Zhao,
how exactly did you install deal.II? We've found pretty consistently that
installing deal.II on Macs with ARM chips is quite difficult, but there are
.dmg files you can download.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


David Montiel Taboada

unread,
Feb 13, 2024, 5:24:06 PM2/13/24
to deal.II User Group

I am encountering a similar runtime error with one of my applications:

Assertion 1L<<t->state() & (1L<<task::allocated|1L<<task::ready|1L<<task::reexecute) failed on line 407 of file ../../src/tbb/custom_scheduler.h 

I am using deal.II v9.5.2 but the error also occurred with v9.5.0 (the dmg version in both cases; the candi installation failed). 

I have a Macbook Pro with M2 chip with OS Sonoma 14.3.1. My clang version 15.0.0.

As with Zhao, the application runs without errors on a Linux system with deal.II v9.5.1.

I would really appreciate some hints as to how to solve the issue.

Best,

David
Reply all
Reply to author
Forward
0 new messages