Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
yitongh committed Sep 11, 2024
1 parent a599133 commit 48d0786
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions torch_xla/csrc/runtime/torch_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ void TorchCUDACachingAllocator::DeallocateRaw(void* ptr) {

void TorchCUDACachingAllocator::SetStreamAndPreallocateMemory(void* stream) {
auto new_cuda_stream = static_cast<cudaStream_t>(stream);
if (cuda_stream_ != nullptr && new_cuda_stream != cuda_stream_) {
LOG(FATAL) << // Crash OK.
"Trying to set the stream twice. This isn't supported. ";
}
VLOG(3) << "Setting cuda stream " << stream
<< " for TorchCUDACachingAllocator on device "
<< static_cast<int>(device_index_);
Expand Down

0 comments on commit 48d0786

Please sign in to comment.