Comments (14)
Hi @fonnesbeck -
This is a strange error, since it comes from one of the Stan-math dependencies, but as far as I can tell they only pass that argument when using GCC, not clang:
https://github.com/search?q=repo%3Astan-dev%2Fmath+lifetime-dse+NOT+language%3AText&type=code
Do you use any other Stan interface (e.g. CmdStan)? Was this error present there?
from bridgestan.
Yes, I just ran the model successfully using the same data under cmdstanpy. Not sure if their default compile args are the same as under bridgestan or not.
from bridgestan.
Could you show the output of make -d
?
there shouldn’t be any differences between cmdstan’s tbb make rules and bridgestans, but clearly something is up
from bridgestan.
I've been running bridgestan via nutpie. Do you just want make -d
from within the bridgestan source directory?
from bridgestan.
Running make manually would definitely work, but you might be able to pass -v as an extra argument in the nutpie wrapper
from bridgestan.
@fonnesbeck thanks - could you try the same thing but building a model? for example make -v test_models/multi/multi_model.so
from the bridgestan folder
from bridgestan.
The -v
flag just returns the make version. Running with -d
seems to hang here when running the multi_model example:
Reading makefiles...
Reading makefile '/Users/cfonnesbeck/GitHub/bridgestan/stan/lib/stan_math/lib/tbb_2020.3/build/Makefile.tbbmalloc'...
Reading makefile '../tbb_2020.3/build/common.inc' (search path) (no ~ expansion)...
make[1]: Entering directory '/Users/cfonnesbeck/GitHub/bridgestan/stan/lib/stan_math/lib/tbb'
Reading makefile '../tbb_2020.3/build/macos.inc' (search path) (no ~ expansion)...
Reading makefile '../tbb_2020.3/build/macos.clang.inc' (search path) (no ~ expansion)...
from bridgestan.
My bad, I meant -d
.
That's very interesting, since that file it is reading does not have the -flifetime-dse=1
argument, macos.gcc.inc
does.
How long did you let it spin before killing it?
from bridgestan.
Still running!
![Screenshot 2023-07-24 at 3 46 19 PM](https://private-user-images.githubusercontent.com/81476/255697889-ddf968f5-ea90-47c6-ab14-1d09ab7e8791.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExMDE0NDQsIm5iZiI6MTcyMTEwMTE0NCwicGF0aCI6Ii84MTQ3Ni8yNTU2OTc4ODktZGRmOTY4ZjUtZWE5MC00N2M2LWFiMTQtMWQwOWFiN2U4NzkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDAzMzkwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQyMjBiOWQ5YzE2MGNiZDUyZDdkZjkxNjU2MGZlMGRmNzM4ZjMyZWE3MmE1ODgyMjAxZDIwM2UyMmFiMWNkMzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ngAUWJDXrA46TI5BtH1LT1donXBgC3V6hvCPoYFg9Dk)
from bridgestan.
Hm, very odd. If you have a working cmdstan you should be able to literally copy the tbb files from that over and it should work, but that doesn't answer why this is happening still
from bridgestan.
Yes, very curious. Moreover, it happens on two different machines.
from bridgestan.
This appears to be some odd side-effect of running Python from within VSCode. If I run the model from a terminal, the error does not occur. Not sure why, but clearly has nothing to do with bridgestan, so I will close this. Apologies!
from bridgestan.
Oh very odd! I wonder if there are any environment variables being set by VSCode which Make is then picking up
from bridgestan.
I guess you use conda, right?
Maybe it could also have something to do with environment variables set by conda? Especially if you are not using bash interactively, some variables might then not get set, even if you activate an env? I think CVCode always uses the bash activate scripts.
from bridgestan.
Related Issues (20)
- Missing support for precompiled header HOT 25
- Tracking: Changes in the next version of Stan
- Better Error Message for Python Interface Automatically Downloading BridgeStan Source HOT 1
- bridgestan on Julia crashes on windows if .julia path has spaces HOT 5
- Functionality necessary to nest Stan models in other PPLs HOT 13
- Tracking: Changes in Stan 2.34
- More consistent instantiation from a .stan file in various languages HOT 2
- Python callback into BridgeStan with C types HOT 10
- Control over the internal threading of a model
- logo icons HOT 2
- Add an R function to convert data list to JSON HOT 2
- github.io page outdated HOT 1
- Tracking: Changes in the next version of Stan
- clang: error: no such file or directory: './stan/lib/stan_math/lib/tbb/libtbb.dylib' HOT 3
- add no_warnings / quiet option to StanModel$new() HOT 10
- any way to reduce UserWarning level on loading already loaded model? HOT 3
- Ability to check if bridgestan sources are already available HOT 9
- Consider moving Julia download away from LazyArtifacts HOT 5
- Bridgestan failure with Hessian AD enabled HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bridgestan.