-
Notifications
You must be signed in to change notification settings - Fork 5
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
Setup TBB Linking #4
Comments
Yeah, I think we'll also need to build and link against the TBB. @wds15 or @rok-cesnovar do you have a suggestion here? Should we somehow rely on part of the makefiles in Math instead? |
Yes, we should use some of the math makefile magic for the tbb stuff...or you install the tbb yourself. Let me have a look. |
This should make it work: https://github.com/wds15/perf-math/blob/lgamma/Makefile |
Almost:
Which I'm assuming is indicating that the TBB hasn't been compiled. Is there a flag to add that will kick-off the compilation and linking? |
I added a libs target. So do a make libs first |
One of these days I'll learn to read properly, thanks. I'm back to getting the same errors in my first post. I've done a fresh clone and copied your makefile but the errors are still there |
can you post the branch somewhere? |
Sure, branch is here: https://github.com/andrjohns/perf-math/blob/feature/tbb_test/Makefile My workflow start to finish is:
|
Running this on my Mac gives me a running What OS + compiler are you on? |
Curiouser and curiouser. I'm on Linux with g++ 8.3.0 |
I've just tried clang 8.0 and that works without an issue, so I'm not sure why g++ is having an issue |
Is this some Ubuntu? |
Yep, Kubuntu 19.04 |
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:Is there an additional flag or setup step that I'm missing?
The text was updated successfully, but these errors were encountered: