Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make atlas standard in Sage #823

Closed
williamstein opened this issue Oct 4, 2007 · 9 comments
Closed

make atlas standard in Sage #823

williamstein opened this issue Oct 4, 2007 · 9 comments

Comments

@williamstein
Copy link
Contributor

Merged in 2.9.alpha6.

Component: packages: standard

Issue created by migration from https://trac.sagemath.org/ticket/823

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Oct 27, 2007

comment:4

What needs to be done:

  • update to 3.8.0
  • use sage_fortran to build the f77 wrapper, the flag --no-f77 doesn't work properly
  • build a complete Lapack by using netlib.org's F77 Lapack

Getting ATLAS into Sage will probably be a coding sprint project during SD6.

Cheers,

Michael

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 24, 2007

comment:5

new package that should resolve all these issues.

http://sage.math.washington.edu/spkgs/atlas-3.8.spkg

One important point. For atlas to build a correct lapack, we must have already built an lapack and then merge with atlas libs to get a full one. On OSX we don't build lapack so the above package will fail. To use the above on OSX first install this spkg

http://sage.math.washington.edu/spkgs/lapack-20071123.spkg

This will build lapack even on OSX. Then atlas can be installed.

Also on OSX even with atlas installed, numpy and scipy build against the accelerate framework still.

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 27, 2007

comment:6

I just noticed that building the cvxopt package with this atlas causes a missing symbol error for the cvxopt package

_g95_ioparm

I'm mystified by this. Need to investigate.

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 28, 2007

comment:7

Ignore the cvxopt package issue, it was a mistake on my part, I think atlas is ready to go.

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 28, 2007

comment:8

the atlas3.8 package didn't have mabshoff's patch so that the shared objects are copied by make install

http://sage.math.washington.edu/home/jkantor/spkgs/atlas-3.8.p1.spkg

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 28, 2007

comment:9

Problem:

Atlas does not build shared libraries on OSX.

THis is because on OSX the atlas build script does

ld -melf_i386 -shared -soname libatlas.so -o libatlas.so
--whole-archive libatlas.a --no-whole-archive -lc -lm
ld: unknown flag: -melf_i386

This is a problem with atlas not knowing that on osx we don't want elf,

probably should be -dynamiclib or something.

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 29, 2007

comment:10

On OSX the ld options --whole_archive don't exist.

The following appears to produce a shared atlas from the static one

ld -dylib -o libatlas.dylib -lm -lc -all_load libatlas.a

(-L must be set appropriately)

@sagetrac-jkantor
Copy link
Mannequin

sagetrac-jkantor mannequin commented Nov 30, 2007

comment:11

New package

http://sage.math.washington.edu/home/jkantor/atlas-3.8.p2.spkg

This package fixes problems with the shared libraries lapack creates on linux (the lapack.so doesn't not have the same symbols as lapack.a)

It also creates libatlas and libcblas shared on OSX using the trick in the previous comment, but I have not yet resolved how to make libf77blas or liblapack shared on OSX. It might be best
to not do this on OSX till we create the whole thing. Thoughts

@sagetrac-mabshoff

This comment has been minimized.

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.10.1, sage-2.9 Dec 13, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Dec 13, 2007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant