Repository navigation
adding -pthread for linux-ppc64le in setup.py - #8158
Conversation
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for the patch and for fixing this. Few comments inline, this also needs a buildfarm run and a manual test on a ppc64le machine, particularly against the threading layers.
|
|
||
| ext_mviewbuf = Extension(name='numba.mviewbuf', | ||
| extra_link_args=install_name_tool_fixer, | ||
| extra_link_args=extra_link_args, |
There was a problem hiding this comment.
Does this library need pthreads?
There was a problem hiding this comment.
no, it appears as though it doesn't.
|
@stuartarchibald I have fixed up the items from the review and tested the patch on a |
Thanks @esc, does this need to be in the 0.56 milestone? |
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for the update, this looks about right and the proof is in the build on the PPC64LE architecture. There's a question inline but otherwise this seems ok. Thanks again!
| depends=['numba/np/ufunc/workqueue.h'], | ||
| include_dirs=[os.path.join(tbb_root, 'include')], | ||
| extra_compile_args=cpp11flags, | ||
| extra_link_args=extra_link_args, |
There was a problem hiding this comment.
Why is this needed for TBB pool but not OpenMP one? Am guessing the pthread_atfork call in TBB and no pthread.h API use in OpenMP (even though the header file is #included
numba/numba/np/ufunc/omppool.cpp
Line 21 in 9a7820c
pthread_self()).
There was a problem hiding this comment.
Yes, the OpenMP extension does not appear to need the linker flags.
There was a problem hiding this comment.
Thanks for checking. I suggest removing the unused header as well as the use of the link time flags.
* main: (452 commits) Make numba.cuda.tests.doc_examples.ffi a module removed unused imports Clean up wrapper and only accept SUBPROC_TEST=1 as true. fix for /tmp/tmp access issues Fix links in `CONTRIBUTING.md` add a note to `numpy.concatenate` Respond to feedback, alter predicate to test os.environ directly. Add decorator to run a test in a subprocess. Add nrt.cpp to package distribution decl in setup.py. Replace atomic `.store()` with `operator=` Fix up cast to use definition directly. Respond to feedback from review. Updated docs Added documentation and removed fmsub distributions Flake8 fixes Remove use of mk_unique_var in inline_closurecall.py Fix typo in @vectorize docstring and a NumPy spelling. Respond to review comments: Added Advanced Distributions Update docs/source/reference/numpysupported.rst ...
As title
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for the patch and fixes.
|
@stuartarchibald thank you for the review. I double checked b17fe1a manually again on a power8 machine. I was able to compile Numba and the test suite ran to completion w/o issues. |
Great, thanks for checking again @esc. |
Fixes #8157