The tests won't compile with the latest version of the math library because of the dependency on TBB. I've added the compiler flags -I$(TBB)/include -DSTAN_THREADS -DSTAN_TBB but it still fails with:
andrew@Lappinux:~/perf-math$ make -j8 matstuff
g++ -O3 -march=native -Ibenchmark/include -std=c++1y -Imath/ -Imath/lib/boost_1.69.0 -Imath/lib/sundials_4.1.0/include -Imath/lib/eigen_3.3.3 -Imath/lib/tbb_2019_U8/include -DSTAN_THREADS -DSTAN_TBB -Lbenchmark/build/src matstuff.cpp -lbenchmark -lpthread -o matstuff
/usr/bin/ld: /tmp/cckTp8H1.o: in function `tbb::internal::task_scheduler_observer_v3::~task_scheduler_observer_v3()':
matstuff.cpp:(.text._ZN3tbb8internal26task_scheduler_observer_v3D2Ev[_ZN3tbb8internal26task_scheduler_observer_v3D5Ev]+0x14): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'
/usr/bin/ld: /tmp/cckTp8H1.o: in function `tbb::internal::task_scheduler_observer_v3::~task_scheduler_observer_v3()':
matstuff.cpp:(.text._ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D5Ev]+0x18): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'
/usr/bin/ld: /tmp/cckTp8H1.o: in function `tbb::interface6::task_scheduler_observer::~task_scheduler_observer()':
matstuff.cpp:(.text._ZN3tbb10interface623task_scheduler_observerD2Ev[_ZN3tbb10interface623task_scheduler_observerD5Ev]+0x18): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'
/usr/bin/ld: matstuff.cpp:(.text._ZN3tbb10interface623task_scheduler_observerD2Ev[_ZN3tbb10interface623task_scheduler_observerD5Ev]+0x34): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'
/usr/bin/ld: /tmp/cckTp8H1.o: in function `tbb::interface6::task_scheduler_observer::~task_scheduler_observer()':
matstuff.cpp:(.text._ZN3tbb10interface623task_scheduler_observerD0Ev[_ZN3tbb10interface623task_scheduler_observerD5Ev]+0x18): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'
/usr/bin/ld: /tmp/cckTp8H1.o:matstuff.cpp:(.text._ZN3tbb10interface623task_scheduler_observerD0Ev[_ZN3tbb10interface623task_scheduler_observerD5Ev]+0x33): more undefined references to `tbb::internal::task_scheduler_observer_v3::observe(bool)' follow
collect2: error: ld returned 1 exit status
make: *** [<builtin>: matstuff] Error 1
Is there an additional flag or setup step that I'm missing?
The tests won't compile with the latest version of the math library because of the dependency on TBB. I've added the compiler flags
-I$(TBB)/include -DSTAN_THREADS -DSTAN_TBBbut it still fails with:Is there an additional flag or setup step that I'm missing?