Coder Social home page Coder Social logo

Comments (6)

ketch avatar ketch commented on August 23, 2024

Maybe we should only add **lapack_args when compiling the few Riemann solvers that need it, and put those inside a try block so the whole install doesn't fail if it can't find LAPACK.

from riemann.

ahmadia avatar ahmadia commented on August 23, 2024

Yes, it would not be hard to modify the Riemann installer to only build the
kernels that require LAPACK when LAPACK is available through NumPy.

On Sat, Feb 1, 2014 at 6:42 AM, David Ketcheson [email protected]:

Maybe we should only add **lapack_args when compiling the few Riemann
solvers that need it, and put those inside a try block so the whole install
doesn't fail if it can't find LAPACK.

Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-33869466
.

from riemann.

aterrel avatar aterrel commented on August 23, 2024

Do these old instructions not work?

Just for grins I opened up a shell and did:

$ pip install git+https://github.com/clawpack/clawpack.git

But that resulted in "cannot find -lblas"

Being more creative let's try setting up links to mkl:

[~]$ ln -s /opt/anaconda/envs/np17py27-1.5/lib/libmkl_intel_lp64.so libblas.so
[~]$ ln -s /opt/anaconda/envs/np17py27-1.5/lib/libmkl_intel_lp64.so liblapack.so
[~]$ export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
[~]$ export LIBRARY_PATH=$PWD:$LIBRARY_PATH
[~]$ pip install git+https://github.com/clawpack/clawpack.git

Then clawpack installs fine (although you might want to clean the paths up a bit).

After that opening a new notebook, import clawpack works.  

from riemann.

ketch avatar ketch commented on August 23, 2024

@aterrel Thanks for that. However, I tried those 5 lines, followed by 'pip install clawpack' and got

/usr/bin/ld: cannot find -lf77blas

Is my environment somehow different from yours?

from riemann.

ketch avatar ketch commented on August 23, 2024

By the way, I was able to install clawpack successfully by doing

pip install -U numpy
pip install clawpack

As @mandli pointed out, our setup.py relies on flags available only in numpy 1.8. I think I'll post these instructions to the docs and close this issue.

from riemann.

mandli avatar mandli commented on August 23, 2024

I am not sure if it's the version of NumPy that's the issue but your fix @ketch seems to imply that. My guess is that the upgrade somehow either finds the BLAS and LAPACK libraries correctly or finds it's own.

I think the puzzling thing here is why numpy.__config__.lapack_opt_info does not have the correct information.

from riemann.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.