Repository navigation
adding -pthread for linux-ppc64le in setup.py #8158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
fbd5df2
46ad6ce
dd33b3d
b57f404
5646137
b17fe1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -66,9 +66,12 @@ def run(self): | |||
| cmdclass = versioneer.get_cmdclass() | ||||
| cmdclass['build_doc'] = build_doc | ||||
|
|
||||
| extra_link_args = [] | ||||
| install_name_tool_fixer = [] | ||||
| if sys.platform == 'darwin': | ||||
| install_name_tool_fixer += ['-headerpad_max_install_names'] | ||||
| if platform.machine() == 'ppc64le': | ||||
| extra_link_args += ['-pthread'] | ||||
|
|
||||
| build_ext = cmdclass.get('build_ext', build_ext) | ||||
|
|
||||
|
|
@@ -172,7 +175,8 @@ def get_ext_modules(): | |||
| "numba/cext/dictobject.c", | ||||
| "numba/cext/listobject.c", | ||||
| ], | ||||
| extra_link_args=install_name_tool_fixer, | ||||
| extra_link_args=install_name_tool_fixer + | ||||
| extra_link_args, | ||||
| depends=["numba/_pymodule.h", | ||||
| "numba/_helperlib.c", | ||||
| "numba/_lapack.c", | ||||
|
|
@@ -278,6 +282,7 @@ def check_file_at_path(path2file): | |||
| depends=['numba/np/ufunc/workqueue.h'], | ||||
| include_dirs=[os.path.join(tbb_root, 'include')], | ||||
| extra_compile_args=cpp11flags, | ||||
| extra_link_args=extra_link_args, | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed for TBB pool but not OpenMP one? Am guessing the numba/numba/np/ufunc/omppool.cpp Line 21 in 9a7820c
pthread_self()).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the OpenMP extension does not appear to need the linker flags.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for checking. I suggest removing the unused header as well as the use of the link time flags.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have removed the header in 5646137 |
||||
| libraries=['tbb'], # TODO: if --debug or -g, use 'tbb_debug' | ||||
| library_dirs=[ | ||||
| # for Linux | ||||
|
|
@@ -319,7 +324,8 @@ def check_file_at_path(path2file): | |||
| name='numba.np.ufunc.workqueue', | ||||
| sources=['numba/np/ufunc/workqueue.c', | ||||
| 'numba/np/ufunc/gufunc_scheduler.cpp'], | ||||
| depends=['numba/np/ufunc/workqueue.h']) | ||||
| depends=['numba/np/ufunc/workqueue.h'], | ||||
| extra_link_args=extra_link_args) | ||||
| ext_np_ufunc_backends.append(ext_np_ufunc_workqueue_backend) | ||||
|
esc marked this conversation as resolved.
Resolved
|
||||
|
|
||||
| ext_mviewbuf = Extension(name='numba.mviewbuf', | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.