Delete dead code in memory space assignment
PiperOrigin-RevId: 357239017 Change-Id: I0db7ea18c4580dfef833a30bbccd0bba6f71dcb9
This commit is contained in:
parent
e9ce368a53
commit
048e5baef9
@ -254,12 +254,6 @@ float MemorySpaceAssignmentCostAnalysis::GetInstructionElapsedDueToCompute(
|
|||||||
cost_analysis_.per_second_rate(HloCostAnalysis::kTranscendentalsKey));
|
cost_analysis_.per_second_rate(HloCostAnalysis::kTranscendentalsKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
float MemorySpaceAssignmentCostAnalysis::
|
|
||||||
GetInstructionElapsedDueToMemorySlowdown(int64 bytes) const {
|
|
||||||
return bytes /
|
|
||||||
cost_analysis_.per_second_rate(HloCostAnalysis::kBytesAccessedKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
float MemorySpaceAssignmentCostAnalysis::GetInstructionElapsedDueToMemory(
|
float MemorySpaceAssignmentCostAnalysis::GetInstructionElapsedDueToMemory(
|
||||||
const HloInstruction& instruction,
|
const HloInstruction& instruction,
|
||||||
absl::optional<int64> operand_in_alternate_mem,
|
absl::optional<int64> operand_in_alternate_mem,
|
||||||
|
@ -123,12 +123,6 @@ class MemorySpaceAssignmentCostAnalysis {
|
|||||||
absl::optional<int64> operand_in_alternate_mem = absl::nullopt,
|
absl::optional<int64> operand_in_alternate_mem = absl::nullopt,
|
||||||
bool output_in_alternate_mem = false) const;
|
bool output_in_alternate_mem = false) const;
|
||||||
|
|
||||||
// Returns the elapsed time in seconds that other BufferIntervals are slowed
|
|
||||||
// down, due to the prefetching of current bytes. Assuming other
|
|
||||||
// BufferIntervals needs default memory bandwidth, and only current
|
|
||||||
// BufferInterval is prefetched.
|
|
||||||
float GetInstructionElapsedDueToMemorySlowdown(int64 bytes) const;
|
|
||||||
|
|
||||||
// Returns the estimated elapsed duration of the instruction in seconds. It
|
// Returns the estimated elapsed duration of the instruction in seconds. It
|
||||||
// assumes all operands and outputs of the instruction are in the default
|
// assumes all operands and outputs of the instruction are in the default
|
||||||
// memory.
|
// memory.
|
||||||
|
Loading…
Reference in New Issue
Block a user