Skip to content

Do not use with device in code base#5963

Merged
kmaehashi merged 4 commits intocupy:masterfrom
emcastillo:fix-device-cm
Nov 1, 2021
Merged

Do not use with device in code base#5963
kmaehashi merged 4 commits intocupy:masterfrom
emcastillo:fix-device-cm

Conversation

@emcastillo
Copy link
Copy Markdown
Member

Fixes #5943

Do not use the context manager since mixing it with internal calls will mess the user set device.

@emcastillo
Copy link
Copy Markdown
Member Author

Jenkins, test this please

@chainer-ci
Copy link
Copy Markdown
Member

Jenkins CI test (for commit 1a1ac3a, target branch master) succeeded!

@emcastillo
Copy link
Copy Markdown
Member Author

/test

@kmaehashi
Copy link
Copy Markdown
Member

kmaehashi commented Oct 29, 2021

We have to use both setRuntime and with in CuPy codebase.

@emcastillo
Copy link
Copy Markdown
Member Author

Jenkins, test this please

@chainer-ci
Copy link
Copy Markdown
Member

Jenkins CI test (for commit 12cb4e2, target branch master) succeeded!

@emcastillo
Copy link
Copy Markdown
Member Author

Jenkins, test this please

@chainer-ci
Copy link
Copy Markdown
Member

Jenkins CI test (for commit f896ea6, target branch master) succeeded!

@kmaehashi kmaehashi added blocking Issue/pull-request is mandatory for the upcoming release cat:bug Bugs prio:high labels Oct 29, 2021
@kmaehashi kmaehashi added this to the v10.0.0rc1 milestone Nov 1, 2021
@kmaehashi kmaehashi merged commit 5819028 into cupy:master Nov 1, 2021
@kmaehashi kmaehashi changed the title Dont use with device in code base Do not use with device in code base Nov 2, 2021
@chainer-ci
Copy link
Copy Markdown
Member

Jenkins CI test (for commit f896ea6, target branch master) succeeded!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocking Issue/pull-request is mandatory for the upcoming release cat:bug Bugs prio:high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Current device/stream must not be changed by CuPy

3 participants