spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

anaconda windows package and multithreading

Open andrely opened this issue 10 years ago • 3 comments

I'm using the Anaconda python 2.7 on Windows 8 and installed the latest version as per the documentation (conda config --add channels spacy; conda install spacy).

But I cannot manage to get to Spacy to run multiple threads as verified with process explorer.

Is the Anaconda package compiled with OpenMP support or does it require manual installation to enable compilation with OpenMP?

Kind regards

André Lynum

andrely avatar May 15 '16 16:05 andrely

I can confirm that via the anaconda 2 and 3 packages on os x that the multithreading is not working correctly.

Building from source with anaconda 2 and 3 on OSX 10.11 doesn't work by default, but a bit of fiddling with the compiler options gets it going okay.

By default, homebrew will install gcc to be used with the versioned name, e.g. gcc-6. you can either add the lines

os.environ["CC"] = "gcc-6"
os.environ["CXX"] = "g++-6"

to setup.py or call CC=gcc-6; python setup.py build; pip install -e . to get it working correctly. this should be updated in the docs.

binaryaaron avatar Jul 11 '16 18:07 binaryaaron

@andrely , were you able to find "Is the Anaconda package compiled with OpenMP support in Windows ?."

msunil10052 avatar Dec 22 '17 18:12 msunil10052

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 08 '18 04:05 lock[bot]