Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PERF: improve multithreaded ufunc scaling#27896

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
seberg merged 10 commits intonumpy:mainfromngoldbaum:fix-multithreaded-scaling
Dec 5, 2024
Merged
Changes from1 commit
Commits
Show all changes
10 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
MAINT: try to give new function a name indicating it uses a mutex
  • Loading branch information
@ngoldbaum
ngoldbaum committedDec 3, 2024
commitf2b7cc1ff73daaa343c47c5aa6f482fbdfd2a344
5 changes: 3 additions & 2 deletionsnumpy/_core/src/umath/dispatching.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -904,7 +904,8 @@ promote_and_get_info_and_ufuncimpl(PyUFuncObject *ufunc,
* only acquires a write lock on a cache miss to fill the cache
*/
static inline PyObject *
try_promote_and_get_info_and_ufuncimpl(PyUFuncObject *ufunc,
promote_and_get_info_and_ufuncimpl_with_locking(
PyUFuncObject *ufunc,
PyArrayObject *const ops[],
PyArray_DTypeMeta *signature[],
PyArray_DTypeMeta *op_dtypes[],
Expand DownExpand Up@@ -1022,7 +1023,7 @@ promote_and_get_ufuncimpl(PyUFuncObject *ufunc,
}

#ifdef Py_GIL_DISABLED
PyObject *info =try_promote_and_get_info_and_ufuncimpl(ufunc,
PyObject *info =promote_and_get_info_and_ufuncimpl_with_locking(ufunc,
ops, signature, op_dtypes, legacy_promotion_is_possible);
#else
PyObject *info = promote_and_get_info_and_ufuncimpl(ufunc,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp