Skip to content
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

tbb undefined ref aspect 2.5 deal 9.5 #5379

Open
VictorEijkhout opened this issue Aug 31, 2023 · 5 comments
Open

tbb undefined ref aspect 2.5 deal 9.5 #5379

VictorEijkhout opened this issue Aug 31, 2023 · 5 comments

Comments

@VictorEijkhout
Copy link

Ok, I just had a tbb problem with deal 9.5

dealii/dealii#15946

and I'm guessing that fixing it broke the tbb part of aspect. Log files attached.

@VictorEijkhout
Copy link
Author

aspect_logs.zip

@gassmoeller
Copy link
Member

Hi Victor, thanks for reporting the issue.

Aspect 2.4.0 is not compatible with deal.II 9.5.1, we can only guarantee compatibility with past deal.II versions so this failure is not surprising.
Aspect 2.5.0 however should compile correctly with deal.II 9.5.1. I dont think I have seen a TBB error like this before. Is this with the bundled TBB from deal.II or an external TBB? It looks to me like an incompatibility of deal.II with the TBB version you are using, and it may not have shown up in the deal.II compilation because it is in a header only part of the library that is not compiled? Alternatively, maybe the TBB paths are not found correctly by Aspect (i.e. not exported correctly by deal.II?)?

For future reference the relevant part of the logs is likely:

/opt/apps/gcc/12.2.0/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: CMakeFiles/aspect.dir/Unity/unity_42_cxx.cxx.o: in function `dealii::parallel::ParallelForInteger::apply_parallel(unsigned long, unsigned long, unsigned long) const':
unity_42_cxx.cxx:(.text._ZNK6dealii8parallel18ParallelForInteger14apply_parallelEmmm[_ZNK6dealii8parallel18ParallelForInteger14apply_parallelEmmm]+0x3a): undefined reference to `tbb::detail::r1::initialize(tbb::detail::d1::task_group_context&)'

and dealii::parallel::ParallelForInteger::apply_parallel is in deal.II/include/deal.II/parallel.h. @tjhei do you have an idea what could be going on?

@VictorEijkhout
Copy link
Author

This is I hope the external TBB from Intel: Deal2 (as per linked ticket in their system) did not compile with their own TBB, so I linked the Intel one. I hope you're picking up that one too....

@tjhei
Copy link
Member

tjhei commented Sep 21, 2023

@VictorEijkhout Are you still manually setting the TBB include path? Maybe ASPECT does not see that and uses a different TBB.

@LemonBoy68
Copy link

I also encountered the same problem, how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants