Code Monkey home page Code Monkey logo

Comments (12)

JonahDW avatar JonahDW commented on September 11, 2024 2

Had to fight with my conda environment for a bit, but it looks to be all working! Thanks @beckermr!

from namaster.

damonge avatar damonge commented on September 11, 2024 1

@DanielLenz no idea. Have you tried @beckermr 's conda-forge package? (conda install -c conda-forge namaster)

from namaster.

joezuntz avatar joezuntz commented on September 11, 2024 1

In case this is still useful - illegal instruction errors happen when you compile code for one CPU architecture but then run it on another. This can happen either if you copy something from one machine to another, or if you are using a heterogenous cluster which has different types of CPU in it.

In the latter case, lowering optimization levels can help.

from namaster.

DanielLenz avatar DanielLenz commented on September 11, 2024

I'm using the Python distribution that's provided on the cluster instead of anaconda, and it's not an issue right now because it works perfectly fine on the SKX nodes.

Feel free to close this, we can always re-open if there are any new insights.

I've been using the conda-forge package locally on my laptop (Py3.7), and it works like a charm!

from namaster.

damonge avatar damonge commented on September 11, 2024

OK, great. Will leave open in case someone else encounters the same problem

from namaster.

JonahDW avatar JonahDW commented on September 11, 2024

I'll just revive this instead of opening a new issue.

I'm experiencing the same issue when trying to run nmt.mask_apodization() in python. I'm using the conda-forge package (Py3.7). I'm using it on my desktop which just has a single CPU with 8 cores in it, so I am really not sure what could be causing this.

from namaster.

damonge avatar damonge commented on September 11, 2024

OK, thanks. Can you post the exact code you're running?

from namaster.

damonge avatar damonge commented on September 11, 2024

(also, it'd be good to check if this also happens if you install the code from pip, in case you've tried that)

from namaster.

JonahDW avatar JonahDW commented on September 11, 2024

The only line is the one where the error occurs:

mask = nmt.mask_apodization(mask.astype(float), aposize=1., apotype='Smooth')

Where mask is a boolean array of length 12288 (for NSIDE=32 map). I tried playing around but the pip installation was giving me trouble.

from namaster.

beckermr avatar beckermr commented on September 11, 2024

I think this issue is now solved. Care to try again?

from namaster.

beckermr avatar beckermr commented on September 11, 2024

yay!

@damonge we can close this one!

from namaster.

damonge avatar damonge commented on September 11, 2024

Awesome, thanks a lot!

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.