forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Snippets] Added Dynamism support to intermediate memory
[Snippets] Renamed BufferID to BufferRegisterGroup [Snippets] Changed allocation shape on size [Snippets] Added Buffer cluster_ID [Snippets][Tests] Fixed build insert_load_store test [Snippets] Splited SolveBufferMemory into static and dynamic logic [Snippets] Rewrote ComputeBufferAllocationSize::get_allocation_size [Snippets] Added synamism support to InitBuffersDefault [Snippets][Tests] Added tests for clusters [Snippets] Added buffer_expressions to ComputeBufferAllocationSize [Snippets] Added to LoopInfo for splitted loops: [Snippets] Removed copy from UpdateLoopInfo [Snippets] Moved UpdateLoopInfo to RunimeConfigurator [Snippets] Add dynamic buffers support to Configurator [Snippets] Fixed Reduce decomp: add shape infer for outputs [snippets] Fixed broadcast_merge_dim in shape inference [Snippets][CPU][Tests] Enabled dynamic Softmax tests [Snippets] Removed useless function calculate_size [Snippets][CPU][Tests] Enabled dynamic reduce test [Snippets] Small fixes in solve_buffer_memory for dynamic nodes [CPU][Snippets] Removed useless emitters LoadConvert and StoreConvert [Snippets] Added missed consumers cloning [Snippets][CPU] Added buffer offsets to call_args [Snippets][CPU] Added dynamic offsets support to load and store emitters [CPU][UnitTests} Fixed build [Snippets][AArch64] Fixed build [Snippets] Small fixes
- Loading branch information
1 parent
b0b4201
commit 38b570f
Showing
66 changed files
with
1,175 additions
and
905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/common/snippets/include/snippets/lowered/pass/compute_buffer_allocation_size.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (C) 2018-2024 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
|
||
#include "pass.hpp" | ||
|
||
#include "snippets/lowered/loop_manager.hpp" | ||
|
||
namespace ov { | ||
namespace snippets { | ||
namespace lowered { | ||
namespace pass { | ||
|
||
/** | ||
* @interface ComputeBufferAllocationSize | ||
* @brief The pass calculate allocation sizes of Buffers. | ||
* @param m_buffer_allocation_rank - rank of shape for memory allocation: shape[m_allocation_rank : -1] | ||
* @ingroup snippets | ||
*/ | ||
class ComputeBufferAllocationSize : public RangedPass { | ||
public: | ||
OPENVINO_RTTI("ComputeBufferAllocationSize", "RangedPass") | ||
ComputeBufferAllocationSize(size_t buffer_allocation_rank) : m_buffer_allocation_rank(buffer_allocation_rank) {} | ||
|
||
bool run(LinearIR& linear_ir, lowered::LinearIR::constExprIt begin, lowered::LinearIR::constExprIt end) override; | ||
|
||
static size_t get_allocation_size(const LoopManagerPtr& loop_manager, const ExpressionPtr& buffer_expr, size_t allocation_rank); | ||
|
||
private: | ||
size_t m_buffer_allocation_rank = 0; | ||
}; | ||
|
||
} // namespace pass | ||
} // namespace lowered | ||
} // namespace snippets | ||
} // namespace ov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.