[go: nahoru, domu]

Skip to content

Commit

Permalink
[XLA:GPU] Remove ignore_control_dependencies from HloCSE pass.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 636903955
  • Loading branch information
golechwierowicz authored and tensorflower-gardener committed May 24, 2024
1 parent bc6f106 commit eb1a971
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions third_party/xla/xla/service/gpu/gpu_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1468,12 +1468,7 @@ absl::Status GpuCompiler::OptimizeHloPostLayoutAssignment(
pipeline.AddPass<SimplifyFPConversions>();
}

// Since this CSE runs after collective schedule linearizer which inserts
// control dependencies, ignore these control deps when replacing instructions
// with equivalent ones here.
pipeline.AddPass<HloCSE>(/*is_layout_sensitive=*/true,
/*only_fusion_computations=*/false,
/*ignore_control_dependencies=*/true);
pipeline.AddPass<HloCSE>(/*is_layout_sensitive=*/true);

pipeline.AddPass<HostMemoryTransferAsyncifier>(
static_cast<int64_t>(stream_executor::MemoryType::kHost));
Expand Down

0 comments on commit eb1a971

Please sign in to comment.