rstan and makevars on windows

66 views
Skip to first unread message

Charles Driver

unread,
May 23, 2016, 12:53:51 PM5/23/16
to stan-...@googlegroups.com
I noticed this line:
CXXFLAGS = -O3 -Wall $(DEBUGFLAG) -mtune=core2 #set_by_rstan

after changing to this:
CXXFLAGS = -O3 -Wall $(DEBUGFLAG) -mtune=native

compiling is much faster, and sampling may be too... I found an old closed bug report regarding this but thought I should mention as it may be affecting quite a few people - it was this way on both my pc's, which have recent versions of R (2.2x) and rstan 2.9.0.3 .

Bob Carpenter

unread,
May 23, 2016, 2:17:22 PM5/23/16
to stan-...@googlegroups.com
Ben or Jiqiang --- can you verify we're no longer writing
core2 anywhere? We shouldn't be. If we write anythnig,
it should be -mtune=native.

- Bob

> On May 23, 2016, at 12:53 PM, Charles Driver <cdriv...@gmail.com> wrote:
>
> I noticed this line:
> CXXFLAGS = -O3 -Wall $(DEBUGFLAG) -mtune=core2 #set_by_rstan
>
> after changing to this:
> CXXFLAGS = -O3 -Wall $(DEBUGFLAG) -mtune=native
>
> compiling is much faster, and sampling may be too... I found an old closed bug report regarding this but thought I should mention as it may be affecting quite a few people - it was this way on both my pc's.
>
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jiqiang Guo

unread,
May 23, 2016, 4:10:16 PM5/23/16
to stan-...@googlegroups.com
We don't write anything for now. Even if when we had, it's from what was used by the system (in most cases, from what R distributes), so it was -mtune=core2.  Unless a user changes it, I guess by default, R still distributes a Makevars file for Windows in which it has -mtune=core2.

Jiqiang 

Ben Goodrich

unread,
May 23, 2016, 4:39:00 PM5/23/16
to Stan users mailing list
On Monday, May 23, 2016 at 2:17:22 PM UTC-4, Bob Carpenter wrote:
Ben or Jiqiang --- can you verify we're no longer writing
core2 anywhere?  We shouldn't be.  If we write anythnig,
it should be -mtune=native.

We don't write the Makevars file anymore.

Reply all
Reply to author
Forward
0 new messages