manodeep / Corrfunc

⚡️⚡️⚡️Blazing fast correlation functions on the CPU.
https://corrfunc.readthedocs.io
MIT License
165 stars 50 forks source link

Installing on mac-os #254

Closed SergeiDBykov closed 3 years ago

SergeiDBykov commented 3 years ago

Hi.

===RESOLVED, SEE BELOW ===

I am trying to use Corrfunc on MacOSX 10.15.7 Catalina. I follow the instructions from readme, but modify common.mk before compilation as proposed in #172, using clang from anaconda CC=/Users/sdbykov/opt/anaconda3/envs/venv_science/bin/clang. Everything seems nice, the tests (make tests) are passed.

However there are problems in python. I try example pair counting and it worked fine.

Then I tried this example with pair counting, that's where problems appeared. I run this script, and see this: Screenshot 2021-07-02 at 12 59 43, after that nothing happens. Kernel is still 'busy'. Interupting the kernel leads for RunTimeError: Screenshot 2021-07-02 at 13 01 02.

Calling DDrppi_mocks separately calculates something but still causes RuntimeError: Screenshot 2021-07-02 at 13 02 43

I also tried using the simple conda installation, the results seem to be the same. As well as pip installation with using appropriate CC (but without compiling).

Any ideas? Thank you.

SergeiDBykov commented 3 years ago

Ok, I was just being stupid.

Turns out that the code just calculated DR quite some time. And I thought that it has stuck.

This is because for the message like

In gridlink_mocks_double> Running with [nmesh_x, nmesh_y, nmesh_z]  = 8,15,4.  Time taken =   0.008 sec
Using AVX kernel
0%.........10%.........20%.........30%.........40%.........50%.........60%.........70%.........80%.........90%.........100% done. Time taken =  0.745 secs

appears only during the first calculation of pairs (when I set verbose = True). The next calling of function does not produce such message, and I though there were problems.

Thanks!