18 #ifndef TENSORFLOW_COMPILER_XLA_SERVICE_CPU_CPU_PARALLELIZATION_PREPARATION_H_ 19 #define TENSORFLOW_COMPILER_XLA_SERVICE_CPU_CPU_PARALLELIZATION_PREPARATION_H_ 21 #include "tensorflow/compiler/xla/service/hlo_cost_analysis.h" 23 #include "tensorflow/compiler/xla/service/hlo_pass_interface.h" 44 const int64 max_parallelism,
45 const HloCostAnalysis::ShapeSizeFunction& shape_size)
46 : max_parallelism_(max_parallelism), shape_size_(shape_size) {}
49 tensorflow::StringPiece name()
const override {
50 return "cpu-parallel-prepare";
55 StatusOr<bool> Run(
HloModule* module)
override;
60 StatusOr<bool> RunParallelTaskAssignment(
HloModule* module);
65 bool OutlineParallelizableInstruction(
HloInstruction* instruction);
77 const int64 max_parallelism_;
78 const HloCostAnalysis::ShapeSizeFunction shape_size_;
84 #endif // TENSORFLOW_COMPILER_XLA_SERVICE_CPU_CPU_PARALLELIZATION_PREPARATION_H_ Definition: cpu_parallelization_preparation.h:38
Definition: hlo_instruction.h:165
namespace for xla
Definition: client_library.cc:26
Definition: hlo_module.h:52