On Mon, 16 Oct 2006 07:39:33 -0700, onionman <[EMAIL PROTECTED]> wrote:
> I realize that this is only tangentially related to Sage, but it was
> Sage development that I started off on when I got side-tracked by how
> slowly it was running on my brand new Mac Pro.  After much tracing, I
> found that the culprit came down to slow GMP (due to GMP being compiled
> with mostly generic C code for the Intel Mac platform).  After

Just for clarification -- I likewise did tinkering to get GMP to be very
fast on my Intel Macbook Pro.  The version of GMP distributed with SAGE
for my Intel Macbook Pro definitely is not using mostly generic C code  
(except
for two functions).  I've never used or had access to a
Mac Pro.  Is it the case that the GMP with SAGE on the 64-bit Mac Pro
is mostly compiled using generic C code?

> tinkering with compiler options and re-writing three assembly functions
> from the x86_64 code base, I've managed to get GMP running very nicely
> on my Mac Pro.  It should also run nicely on other 64bit Intel Macs.
> Currently I get "near-Opteron" speeds from GMP on my Mac Pro (which is
> a significant improvement over previous Intel chip performance).  So,
> for any who are interested, you can download the patch from my website,
> http://www.math.jmu.edu/~martin
>
> Let me know if you find any errors!!

Does GMP's "make bench" pass?  Do all of the sage doctests pass ("make  
test")
after you recompile GMP?  I'm sure the answer is yes, based on your email,
but I just want to be sure.

What do you think about this statement on the GMP website: "GMP does not  
build
on MacInteltosh machines. No fix planned for GMP 4.x."  Have you tried  
posting
your porting work to the GMP mailing list?  I posted mine a few months ago,
and got no response.

I would love to just make your patch part of the standard SAGE install,
but I'm hesitant to until I get access to a Mac Pro for testing.  Doesn't
anybody out there have one I could have an account on (I'm writing to the  
list)?

Also, what is an easy way from in a /bin/sh script to detect that it is
running on a MacPro?  I need to know this to integrate your patch to the  
GMP
build process into the automated SAGE build.

  -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to