Fix OpenVINO GenAI build with GCC 16
This commit is contained in:
2 files changed
+17
No files matched your search
@@ -29,15 +29,18 @@ _commit=7ea2546852a382cd16bd22dea0cfad2db70ed744
|
||||
source=(
|
||||
"openvino.genai::git+$url.git#commit=$_commit"
|
||||
'gcc-16-char8_t.patch'
|
||||
'linear-attention-guard-constructor.patch'
|
||||
)
|
||||
sha256sums=(
|
||||
'SKIP'
|
||||
'6e685c1e45d4b2314fd55e2f791846cc9086413ba62a6bb5e31be5a5878a243c'
|
||||
'61958d64dd7510ff0cb6da010f26fddba3e5dbc38691828163a63d54951d1b2a'
|
||||
)
|
||||
|
||||
prepare() {
|
||||
cd openvino.genai
|
||||
patch -Np1 -i "$srcdir/gcc-16-char8_t.patch"
|
||||
patch -Np1 -i "$srcdir/linear-attention-guard-constructor.patch"
|
||||
git submodule update --init --recursive
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/src/cpp/src/continuous_batching/pipeline_impl.cpp b/src/cpp/src/continuous_batching/pipeline_impl.cpp
|
||||
--- a/src/cpp/src/continuous_batching/pipeline_impl.cpp
|
||||
+++ b/src/cpp/src/continuous_batching/pipeline_impl.cpp
|
||||
@@ -529,6 +529,10 @@ void ContinuousBatchingPipeline::ContinuousBatchingImpl::step() {
|
||||
const Scheduler::Output& m_scheduler_output;
|
||||
bool m_armed = true;
|
||||
|
||||
+ BorrowedLinearAttentionRowsGuard(ContinuousBatchingImpl& impl, const Scheduler::Output& scheduler_output)
|
||||
+ : m_impl(impl), m_scheduler_output(scheduler_output) {
|
||||
+ }
|
||||
+
|
||||
~BorrowedLinearAttentionRowsGuard() {
|
||||
if (m_armed) {
|
||||
m_impl._release_linear_attention_borrowed_rows(m_scheduler_output);
|
||||
Reference in new issue
Block a user