On Nov 6, 3:18 pm, Sameer <[EMAIL PROTECTED]> wrote:
> Hi Michael,

Hi Sameer,

>    ParaTools, Inc. has ported SAGE successfully to AIX! We had to
> rebuild the library and debug it further
> but now I can say:> set path=($PET_HOME/pkgs/sage-3.1.1 $path)
> > sage
>
> ----------------------------------------------------------------------
> | SAGE Version 3.1.1, Release Date: 2008-08-17                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------

Excellent!

> sage: import numpy
> sage: numpy.test()
> Numpy is installed in /usr/local/PET/pkgs/sage-3.1.1/local/lib/
> python2.5/site-packages/numpy
> Numpy version 1.0.4
> Python version 2.5.2 (r252:60911, Oct 18 2008, 03:31:49) [GCC 4.2.1]
>   Found 10/10 tests for numpy.core.defmatrix
>   Found 36/36 tests for numpy.core.ma
>   Found 223/223 tests for numpy.core.multiarray
>   Found 65/65 tests for numpy.core.numeric
>   Found 31/31 tests for numpy.core.numerictypes
>   Found 12/12 tests for numpy.core.records
>   Found 6/6 tests for numpy.core.scalarmath
>   Found 14/14 tests for numpy.core.umath
>   Found 4/4 tests for numpy.ctypeslib
>   Found 5/5 tests for numpy.distutils.misc_util
>   Found 1/1 tests for numpy.fft.fftpack
>   Found 3/3 tests for numpy.fft.helper
>   Found 9/9 tests for numpy.lib.arraysetops
>   Found 46/46 tests for numpy.lib.function_base
>   Found 5/5 tests for numpy.lib.getlimits
>   Found 4/4 tests for numpy.lib.index_tricks
>   Found 3/3 tests for numpy.lib.polynomial
>   Found 49/49 tests for numpy.lib.shape_base
>   Found 15/15 tests for numpy.lib.twodim_base
>   Found 43/43 tests for numpy.lib.type_check
>   Found 1/1 tests for numpy.lib.ufunclike
>   Found 40/40 tests for numpy.linalg
>   Found 2/2 tests for numpy.random
>   Found 0/0 tests for __main__
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> ........................................................................... 
> .....
> ----------------------------------------------------------------------
> Ran 680 tests in 1.228s
>
> OK
> <unittest._TextTestResult run=680 errors=0 failures=0>
> sage: integrate(tan(x),x)
> log(sec(x))
> sage: a = matrix(ZZ, 10, 4, [randint(0,1) for _ in xrange(40)]); a
>
> [0 1 1 0]
> [1 0 0 0]
> [0 0 1 1]
> [0 0 0 0]
> [1 0 1 1]
> [1 0 1 1]
> [1 1 0 1]
> [1 1 0 0]
> [0 1 0 1]
> [0 1 0 0]
> sage: list(AllExactCovers(a))
>
> [[(0, 0, 1, 1), (1, 0, 0, 0), (0, 1, 0, 0)],
>  [(0, 0, 1, 1), (1, 1, 0, 0)],
>  [(1, 0, 1, 1), (0, 1, 0, 0)],
>  [(1, 0, 1, 1), (0, 1, 0, 0)]]
> sage: 22+32
> 54
> sage: 3/4+1/6
> 11/12
> sage:
> Exiting SAGE (CPU time 0m1.86s, Wall time 1m28.08s).
> Exiting spawned Maxima process.
>
> > uname -a
>
> AIX xxxx 3 5 002B912C4C00
>
> The last error was resolved by printing the type of the object that
> was of type pari.gen. When we
> rebuilt that library by hand and the dependencies, it worked.

Interesting.

>  I should
> also add (for the list) that we had to
> build clisp and gap in 32 bits

Ok, that should not be a problem. It would be nice to have GAP work in
64 bit mode, but that can be sorted out later. We will dumb clisp for
ecl in the future anyway, so I would not worry too much there. The ecl
maintainer does not support AIX yet due to lack of access, but a port
should be little work since it practically runs on everything.

>  and change gap.py to use a fixed big
> number for the file descriptors as the max
> fileno from getrusage was not working properly in AIX. This change
> fixed pexpect.

Nice.

> Thanks a lot for your help! I look forward to discussing these issues
> and help with
> documenting this at the SD 11 with you.

Cool. Hopefully William will get access to that AIX cluster soon so
that we can start merging back fixes sooner than that.

It would be very helpful if you could post patches and notes to the
Wiki page. The output from "make check" would also be helpful. It
might happen that it hangs at some point in which case a CTRL-C or a
manual kill of the current doctest would get you past that. I would be
*very* interested in how that works out.

One bug you certainly have to fix is get_memory_usage() since that one
requires support for AIX to be added. There are likely other places
where you might run into trouble. Unfortunately getting Sage to build
up and start is only half of the battle since making it pass its test
suite can be a lot of work. For example the Solaris port has been
building more or less out of the box for well over a year, but we
still have four bugs to fix before the doctests pass.

> - Sameer

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to