Code Monkey home page Code Monkey logo

Comments (14)

fjaviersanchez avatar fjaviersanchez commented on September 11, 2024 1

I'm afraid not.

Thanks! I'll look deeper into it.

from namaster.

fjaviersanchez avatar fjaviersanchez commented on September 11, 2024

@DanielLenz I think this is a Mac specific issue. For some reason it is not finding one of the libraries. Does it work if you do export PATH=$PATH:/Users/dlenz/software/NaMaster/.libs?

Please, let us know of the outcome so we can add instructions to the README.

from namaster.

DanielLenz avatar DanielLenz commented on September 11, 2024

Does it work if you do export PATH=$PATH:/Users/dlenz/software/NaMaster/.libs?

I'm afraid not.

from namaster.

damonge avatar damonge commented on September 11, 2024

@DanielLenz What compiler (and version) did you use to compile this? And was it the same that you used to install libsharp and any other libraries?

from namaster.

damonge avatar damonge commented on September 11, 2024

Also, could you check if the problem gets fixed if you do:

export LD_LIBRARY_PATH=/path/to/where/the/libsharp/libraries/are:$LD_LIBRARY_PATH

?

from namaster.

DanielLenz avatar DanielLenz commented on September 11, 2024

Thank for helping me to debug this!

What compiler (and version) did you use to compile this?

NaMaster [master●] which gcc
gcc: aliased to /usr/local/bin/gcc-7
NaMaster [master●] gcc --version
gcc-7 (Homebrew GCC 7.2.0) 7.2.0

And was it the same that you used to install libsharp and any other libraries?

Good point, I might have used clang or gcc-6 to do that. I can fetch the latest libshard and fftw3 and fix that.
Is there a possibility to include these dependencies in NaMaster, as it is done e.g. in healpy (which includes e.g. healpix, cfitsio, and libsharp)?
Ironically, there are similar issues with the latest version, related to using different compilers: healpy/healpy#455

Also, could you check if the problem gets fixed if you do:
export LD_LIBRARY_PATH=/path/to/where/the/libsharp/libraries/are:$LD_LIBRARY_PATH

I'm afraid that didn't work.

from namaster.

fjaviersanchez avatar fjaviersanchez commented on September 11, 2024

@DanielLenz I did a little bit of digging and it turns out that the c_utils library from libsharp wasn't being linked to libnmt.dylib (when linking libnmt.dylib for some reason the flags -lfftpack -lc_utils are missing). One solution consists on doing export LDFLAGS="-lfftpack -lc_utils" before running ./configure. Please, let me know if this works for you :)

from namaster.

fjaviersanchez avatar fjaviersanchez commented on September 11, 2024

@damonge has just prepared a fix with which you don't even need to export these flags. Please, check it out at the dylib_fix branch.

from namaster.

damonge avatar damonge commented on September 11, 2024

Please let us know if it works, and we'll merge it

from namaster.

DanielLenz avatar DanielLenz commented on September 11, 2024

Awesome, thanks for fixing this so rapidly!

One little issue popped up, everything else passed:

TEST 43/53 nmt:bins_flat_binning [FAIL]
  ERR: test/nmt_test_bins_flat.c:72  expected 0.000e+00, got 2.557e-04 (diff -2.557e-04, tol 1.000e-10)

Now looking into the python wrapper...

from namaster.

DanielLenz avatar DanielLenz commented on September 11, 2024

Installing python didn't raise any issues, all the unittests I ran with python -m unittest -v passed as well. Thanks again!

from namaster.

damonge avatar damonge commented on September 11, 2024

Yeah, @fjaviersanchez mentioned that one. It's weird, because travis doesn't pick it up, and all tests have passed for me in the past. I think it may be a compiler-specific floating point thing related to the issue that caused the first problem to begin with. It's even wierder because python is supposed to be running the same test.

I'll have a quick look, but I wouldn't worry.

Many kudos to @fjaviersanchez for figuring this one out!

from namaster.

damonge avatar damonge commented on September 11, 2024

Tagging @anicola and @NicolettaK , since they had this problem too

from namaster.

anicola avatar anicola commented on September 11, 2024

Thank you very much @fjaviersanchez and @damonge! Now everything works for me as well. As Daniel, I also run into a one little issue:


TEST 41/53 nmt:bins_flat_binning [FAIL]
  ERR: test/nmt_test_bins_flat.c:72  expected 0.000e+00, got 2.652e+00 (diff -2.652e+00, tol 1.000e-10) 

Apart from that, everything works like a charm! Thanks again!

from namaster.

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.