Skip to content

Commit

Permalink
Some cleanup (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
zasdfgbnm authored Sep 3, 2022
1 parent 7d1d7c8 commit df3393a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
15 changes: 0 additions & 15 deletions torch/csrc/jit/codegen/cuda/scheduler/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,21 +298,6 @@ void parallelizeAllLike(
}
}

void computeAtInputs(TensorView* consumer, int pos, ComputeAtMode mode) {
for (auto inp_tv : ir_utils::inputTvsOf(consumer)) {
inp_tv->computeAt(consumer, pos, mode);
}
}

void computeWithOutputs(TensorView* producer, int pos, ComputeAtMode mode) {
for (auto out_tv : ir_utils::outputTvsOf(producer)) {
if (out_tv == producer) {
continue;
}
producer->computeWith(out_tv, pos, mode);
}
}

namespace {

// Find the resolution points of the persistent buffers in the provided
Expand Down
10 changes: 0 additions & 10 deletions torch/csrc/jit/codegen/cuda/scheduler/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,6 @@ TORCH_CUDA_CU_API inline void parallelizeAllLike(
propagate_padding);
}

TORCH_CUDA_CU_API void computeAtInputs(
TensorView* consumer,
int pos,
ComputeAtMode mode = ComputeAtMode::Standard);

TORCH_CUDA_CU_API void computeWithOutputs(
TensorView* producer,
int pos,
ComputeAtMode mode = ComputeAtMode::Standard);

struct PersistentBufferInfo {
std::vector<TensorView*> persistent_buffers;
std::unordered_set<IterDomain*> unmappable_dims;
Expand Down
2 changes: 1 addition & 1 deletion torch/csrc/jit/codegen/cuda/test/test_gpu_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ TEST_F(NVFuserTest, FusionViewIdGraph_CUDA) {
fusion.addOutput(t13);

// Grab the trivial reduced tensor from t12's view.
auto tv11 = ir_utils::producerTvsOf({tv12})[0];
auto tv11 = ir_utils::producerTvsOf(tv12)[0];

// Start from the exact iter domain graph of the fusion
IterDomainGraph id_graph(&fusion);
Expand Down

0 comments on commit df3393a

Please sign in to comment.