Coder Social home page Coder Social logo

Comments (14)

WardBrian avatar WardBrian commented on July 4, 2024

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.

fonnesbeck avatar fonnesbeck commented on July 4, 2024

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.

WardBrian avatar WardBrian commented on July 4, 2024

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.

fonnesbeck avatar fonnesbeck commented on July 4, 2024

I've been running bridgestan via nutpie. Do you just want make -d from within the bridgestan source directory?

from bridgestan.

WardBrian avatar WardBrian commented on July 4, 2024

Running make manually would definitely work, but you might be able to pass -v as an extra argument in the nutpie wrapper

from bridgestan.

WardBrian avatar WardBrian commented on July 4, 2024

@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.

fonnesbeck avatar fonnesbeck commented on July 4, 2024

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.

WardBrian avatar WardBrian commented on July 4, 2024

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.

fonnesbeck avatar fonnesbeck commented on July 4, 2024

Still running!

Screenshot 2023-07-24 at 3 46 19 PM

from bridgestan.

WardBrian avatar WardBrian commented on July 4, 2024

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.

fonnesbeck avatar fonnesbeck commented on July 4, 2024

Yes, very curious. Moreover, it happens on two different machines.

from bridgestan.

fonnesbeck avatar fonnesbeck commented on July 4, 2024

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.

WardBrian avatar WardBrian commented on July 4, 2024

Oh very odd! I wonder if there are any environment variables being set by VSCode which Make is then picking up

from bridgestan.

aseyboldt avatar aseyboldt commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.