Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samnordmann committed Dec 18, 2024
1 parent 38721fe commit c4ca266
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions csrc/host_ir/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ void HostIrEvaluator::handle(SetCurrentStream* set_current_stream) {
}

void HostIrEvaluator::handle(GetCurrentStream* get_current_stream) {
c10::DeviceIndex my_device_index =
communicator_ ? communicator_->deviceId() : 0;
auto my_device_index = communicator_
? static_cast<c10::DeviceIndex>(communicator_->deviceId())
: 0;
streams_.insert(
{get_current_stream->stream(),
c10::cuda::getCurrentCUDAStream(my_device_index)});
Expand Down

0 comments on commit c4ca266

Please sign in to comment.