Did anyone figure this out? I'm giving my class their assignment to use 
MPIR. Many of the students use Mac laptops.  
http://www.cs.sjsu.edu/~mak/CS144/assignments/6/Assignment6.pdf 

On Tuesday, January 15, 2019 at 11:40:46 AM UTC-8, Dima Pasechnik wrote:
>
> Perhaps we can put up this code on MPIR's Travis CI and see how it 
> goes on OSX available there. 
>
> Dima 
>
> On Tue, Jan 15, 2019 at 7:30 PM 'Bill Hart' via mpir-devel 
> <mpir-...@googlegroups.com <javascript:>> wrote: 
> > 
> > One difference is in how jump tables are implemented. But I really don't 
> see how that would be related to this issue. 
> > 
> > Are you sure you are not just running out of memory under OSX? Or 
> perhaps OSX is just pushing stuff out to disk earlier than Linux? 
> > 
> > Bill. 
> > 
> > On Tue, 15 Jan 2019 at 20:07, Ronald Mak/SJSU <ron...@sjsu.edu 
> <javascript:>> wrote: 
> >> 
> >> Hi, Bill. 
> >> 
> >> 
> >> 
> >> This will take some detective work to see what are the differences, if 
> any, between how MPIR is built on macOS and Linux. It could be a 
> configuration issue. Maybe I’ll get a student to look into this. 
> >> 
> >> 
> >> 
> >> – Ron 
> >> http://www.cs.sjsu.edu/~mak/ 
> >> 
> >> 
> >> 
> >> “On two occasions I have been asked, 'Pray, Mr. Babbage, if you put 
> into the machine wrong figures, will the right answers come out?' I am not 
> able rightly to apprehend the kind of confusion of ideas that could provoke 
> such a question.” 
> >> -- Charles Babbage, 1791-1871, world’s first computer scientist 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> From: 'Bill Hart' via mpir-devel <mpir-...@googlegroups.com 
> <javascript:>> 
> >> Reply-To: <mpir-...@googlegroups.com <javascript:>> 
> >> Date: Tuesday, January 15, 2019 at 2:16 AM 
> >> To: mpir-devel <mpir-...@googlegroups.com <javascript:>> 
> >> Subject: Re: [mpir-devel] Re: MPIR slow on macOS? 
> >> 
> >> 
> >> 
> >> That looks correct. 
> >> 
> >> 
> >> 
> >> So your idea that it might be swapping sounds pretty likely. 
> >> 
> >> 
> >> 
> >> I did find someone else reporting a slowdown the other day, and it 
> turned out their program was linked to a very old GMP instead of the MPIR 
> they built. 
> >> 
> >> 
> >> 
> >> I'm not a Mac expert, so I don't know how to check this, but I imagine 
> you can find out online somewhere. 
> >> 
> >> 
> >> 
> >> Otherwise, I can't think of anything which would cause this to happen. 
> >> 
> >> 
> >> 
> >> Bill. 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> On Tue, 15 Jan 2019 at 05:19, Ronald Mak/SJSU <ron...@sjsu.edu 
> <javascript:>> wrote: 
> >> 
> >> Hi, Bill. 
> >> 
> >> 
> >> 
> >> On my Mac laptop: 
> >> 
> >> 
> >> 
> >> ~/mpir-3.0.0: ./config.guess 
> >> 
> >> ivybridge-apple-darwin18.2.0 
> >> 
> >> This is accurate, as far as I can tell. 
> >> 
> >> I’ve attached my pi program, which I assign to my C++ classes to give 
> my students practice downloading, configuring, building, and deploying a 
> software library. 
> >> 
> >> 
> >> 
> >> – Ron 
> >> http://www.cs.sjsu.edu/~mak/ 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> From: 'Bill Hart' via mpir-devel <mpir-...@googlegroups.com 
> <javascript:>> 
> >> Reply-To: <mpir-...@googlegroups.com <javascript:>> 
> >> Date: Monday, January 14, 2019 at 8:11 PM 
> >> To: mpir-devel <mpir-...@googlegroups.com <javascript:>> 
> >> Subject: [mpir-devel] Re: MPIR slow on macOS? 
> >> 
> >> 
> >> 
> >> What does ./config.guess say your machine is? It's probably just too 
> new to be detected correctly. 
> >> 
> >> 
> >> 
> >> Bill. 
> >> 
> >> On Tuesday, 15 January 2019 05:05:06 UTC+1, Ronald Mak wrote: 
> >> 
> >> I wrote a C++ program that uses MPIR 3.0.0 to compute the first million 
> digits of pi. On a native Linux laptop with a Core i7 1.8 GHz CPU, my pi 
> program executed in under 8 seconds. 
> >> 
> >> I installed MPIR 3.0.0 on my MacBook Pro laptop with a Core i7 2.3 GHz 
> CPU and macOS Mojave 10.14.2. The same pi program took over 135 seconds to 
> execute. 
> >> 
> >> Then I used VirtualBox to install Ubuntu 18.10 in a virtual machine on 
> my MacBook Pro laptop. I installed MPIR 3.0.0 on the Ubuntu VM, and the 
> same pi program ran in about 7 seconds. 
> >> 
> >> What is going on with MPIR on macOS to cause my pi program to run so 
> much more slowly? It's apparently not a hardware issue, since the latter 
> two runs of my pi program were on the same laptop, but on different 
> operating systems. Does MPIR cause macOS to generate interrupts? Interpret 
> certain instructions? Paging? 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups "mpir-devel" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an email to mpir-devel+...@googlegroups.com <javascript:>. 
> >> To post to this group, send email to mpir-...@googlegroups.com 
> <javascript:>. 
> >> Visit this group at https://groups.google.com/group/mpir-devel. 
> >> For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups "mpir-devel" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an email to mpir-devel+...@googlegroups.com <javascript:>. 
> >> To post to this group, send email to mpir-...@googlegroups.com 
> <javascript:>. 
> >> Visit this group at https://groups.google.com/group/mpir-devel. 
> >> For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups "mpir-devel" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an email to mpir-devel+...@googlegroups.com <javascript:>. 
> >> To post to this group, send email to mpir-...@googlegroups.com 
> <javascript:>. 
> >> Visit this group at https://groups.google.com/group/mpir-devel. 
> >> For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups "mpir-devel" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an email to mpir-devel+...@googlegroups.com <javascript:>. 
> >> To post to this group, send email to mpir-...@googlegroups.com 
> <javascript:>. 
> >> Visit this group at https://groups.google.com/group/mpir-devel. 
> >> For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "mpir-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to mpir-devel+...@googlegroups.com <javascript:>. 
> > To post to this group, send email to mpir-...@googlegroups.com 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/mpir-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to