Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix UnboundLocalError when blocking=True#9280

Merged
asi1024 merged 3 commits into
cupy:mainfrom
kmaehashi:fix-9271
Aug 4, 2025
Merged

Fix UnboundLocalError when blocking=True#9280
asi1024 merged 3 commits into
cupy:mainfrom
kmaehashi:fix-9271

Conversation

@kmaehashi

Copy link
Copy Markdown
Member

This PR fixes UnboundLocalError when creating CuPy ndarray with blocking e.g. cp.array(..., blocking=True). Closes #9271.

xref #8442, #7939
cc/ @rongou @leofang

@kmaehashi kmaehashi added cat:bug Bugs to-be-backported Pull-requests to be backported to stable branch prio:high labels Aug 2, 2025
@kmaehashi kmaehashi added this to the v14.0.0a2 milestone Aug 2, 2025
@kmaehashi

Copy link
Copy Markdown
Member Author

/test mini

@kmaehashi

Copy link
Copy Markdown
Member Author

/test mini

@asi1024 asi1024 merged commit 87ac427 into cupy:main Aug 4, 2025
66 checks passed
chainer-ci pushed a commit to chainer-ci/cupy that referenced this pull request Aug 4, 2025
Fix `UnboundLocalError` when `blocking=True`
@kmaehashi kmaehashi deleted the fix-9271 branch August 4, 2025 05:41
gpinkert pushed a commit to ROCm/cupy that referenced this pull request Sep 13, 2025
Fix `UnboundLocalError` when `blocking=True`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:bug Bugs prio:high to-be-backported Pull-requests to be backported to stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UnboundLocalError on blocking asarray (regression)

3 participants