Closed DanielLenz closed 3 years ago
@DanielLenz no idea. Have you tried @beckermr 's conda-forge package? (conda install -c conda-forge namaster
)
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!
OK, great. Will leave open in case someone else encounters the same problem
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.
I'll just revive this instead of opening a new issue.
I'm experiencing the same issue when trying to runnmt.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.
OK, thanks. Can you post the exact code you're running?
(also, it'd be good to check if this also happens if you install the code from pip, in case you've tried that)
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.
I think this issue is now solved. Care to try again?
Had to fight with my conda environment for a bit, but it looks to be all working! Thanks @beckermr!
yay!
@damonge we can close this one!
Awesome, thanks a lot!
I've run into an issue giving me an 'illegal hardware instruction' error.
test_workspace_covar_benchmark (test.test_nmt_covar.TestCovarSph)
nmt.mask_apodization()
in pythoncat /proc/cpuinfo
:I compiled the C-libraries with
Any ideas?