Skip to content

Support stream in CUB#2555

Merged
asi1024 merged 3 commits intocupy:masterfrom
leofang:cub_stream
Oct 23, 2019
Merged

Support stream in CUB#2555
asi1024 merged 3 commits intocupy:masterfrom
leofang:cub_stream

Conversation

@leofang
Copy link
Copy Markdown
Member

@leofang leofang commented Oct 19, 2019

This now works (can be verified by nvvp):

import cupy as cp

dtype = cp.complex128
shape = (200, 1000, 1000)
x = cp.random.random(shape).astype(dtype) \
    +1j*cp.random.random(shape).astype(dtype)

stream = cp.cuda.Stream()
with stream:
    y = x.sum()  # runs on "stream" instead of the default stream

@asi1024
Copy link
Copy Markdown
Member

asi1024 commented Oct 23, 2019

Jenkins, test this please.

@pfn-ci-bot
Copy link
Copy Markdown
Collaborator

Successfully created a job for commit 548e6d9:

@asi1024 asi1024 added the cat:enhancement Improvements to existing features label Oct 23, 2019
@chainer-ci
Copy link
Copy Markdown
Member

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

@asi1024 asi1024 added this to the v7.0.0rc1 milestone Oct 23, 2019
@asi1024
Copy link
Copy Markdown
Member

asi1024 commented Oct 23, 2019

LGTM. Thank you for the PR!

@asi1024 asi1024 merged commit b9db374 into cupy:master Oct 23, 2019
@leofang
Copy link
Copy Markdown
Member Author

leofang commented Oct 23, 2019

Thanks for the fast turnaround, @asi1024!

@leofang leofang deleted the cub_stream branch October 23, 2019 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:enhancement Improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants