Skip to content

Commit

Permalink
using stream functions from at instead of c10, small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
azrael417 committed Apr 4, 2024
1 parent c25a0fe commit 57a5608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torch_harmonics/csrc/disco/disco_cuda_bwd.cu
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ torch::Tensor disco_cuda_bwd(torch::Tensor inp,
torch::Tensor out = torch::zeros(out_dims, options);

// get stream
auto stream = at::cuda::getCurrentCUDAStream();
auto stream = at::cuda::getCurrentCUDAStream().stream();

// assert
static_assert(0 == (ELXTH_MAX%2));
Expand Down
2 changes: 1 addition & 1 deletion torch_harmonics/csrc/disco/disco_cuda_fwd.cu
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ torch::Tensor disco_cuda_fwd(torch::Tensor inp,
torch::Tensor out = torch::zeros(out_dims, options);

// get stream
auto stream = at::cuda::getCurrentCUDAStream();
auto stream = at::cuda::getCurrentCUDAStream().stream();

// assert
static_assert(0 == (ELXTH_MAX%2));
Expand Down

0 comments on commit 57a5608

Please sign in to comment.