Re: [deal.II] turning off tbb dependency without recompiling deal.II ?

2023-07-12 Thread Wolfgang Bangerth

On 7/12/23 11:56, Mathieu wrote:


I compiled deal.II with tbb enabled.
My *question* is if there is a way to "turn off" the tbb dependency (using a 
cmake variable) locally such that

ldd ./step-1
does not contain *libtbb.so.2* anymore.
I know that one can do for instance
export DEAL_II_NUM_THREADS=1,
but that has no effect on the ldd call.


Right. You need to recompile and reinstall deal.II if you change this 
configuration parameter.


Best
 W.

--

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


--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e0086d37-3acd-e374-dab0-6ac10b00f50e%40colostate.edu.


[deal.II] turning off tbb dependency without recompiling deal.II ?

2023-07-12 Thread Mathieu
Hello everyone,

my question is a follow-up on this question 
 
that I created some weeks ago.
In a nutshell, I want to link deal.II against matlab, which results in a 
segmentation fault.

#include 
#include "MatlabEngine.hpp"
#include "MatlabDataArray.hpp"

//step-1.cc
int main()
{
matlab::engine::startMATLAB(); //provided by  matlab
dealii::Triangulation<2> triangulation; 
}

The call to startMATLAB() results in a segfault, however, 
there is no segfault if I comment the triangulation object.

Matthias Maier pointed me in the right direction by considering
ldd ./step-1 
which lists, amongst many others, a symbol to the deal.II library and
*libtbb.so.2* (thread building blocks)
I could figure out that matlab links against their own shipped version of 
tbb, 
which probably results in the "symbol clash" that Matthias also mentioned.

I compiled deal.II with tbb enabled.
My *question* is if there is a way to "turn off" the tbb dependency (using 
a cmake variable) locally such that
ldd ./step-1 
does not contain *libtbb.so.2* anymore.
I know that one can do for instance
export DEAL_II_NUM_THREADS=1,
but that has no effect on the ldd call.

Thank you,
Math

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/8edc7057-4a80-4b7f-bd4c-5f7f4ba1fbeen%40googlegroups.com.