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://user-images.githubusercontent.com/81476/255697889-ddf968f5-ea90-47c6-ab14-1d09ab7e8791.png)
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)
- 2.0 Release planning HOT 7
- Deadlock on Windows when unloading libraries in several threads HOT 1
- Python ctypes.CDDL compiled binary loading error HOT 5
- Can/should StanRNG API be more consistent across the interfaces? HOT 4
- Error in R/example.R HOT 1
- Hessian-vector product from stan-dev/math HOT 1
- Runtime errors during `param_unconstrain` because of precision issues HOT 7
- feature request: `theta_unc` taking multi dimensional arrays as input. HOT 6
- Error in `R/example.R` HOT 20
- Add to Getting Started doc necessary dependencies on Stan and Stan Math HOT 3
- Add to Getting Started doc recommendation to use --shallow-submodules HOT 5
- Add to Getting Started doc how to specify pre-existing Stan directory HOT 1
- Add to doc a section highlighting the functionality or lack there of across the interfaces HOT 3
- Julia tests require STAN_THREADS=true, doc this
- TBB path issue on Windows HOT 2
- 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
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.