Skip to content

Commit a9c2646

Browse files
authored
fix bug in DPCPPGuardImpl::getStream (#1701)
1 parent 05d29a9 commit a9c2646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/aten/core/GuardImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void DPCPPGuardImpl::uncheckedSetDevice(Device d) const noexcept {
4141
}
4242

4343
Stream DPCPPGuardImpl::getStream(Device d) const noexcept {
44-
return getCurrentDPCPPStream().unwrap();
44+
return getCurrentDPCPPStream(d.index()).unwrap();
4545
}
4646

4747
Stream DPCPPGuardImpl::exchangeStream(Stream s) const noexcept {

0 commit comments

Comments
 (0)