feature: Add support for legacy acronyms in ocloc's fatbinary

Expands support for deprecated acronyms to fatbinary. Previously,
these were allowed only in single-target builds.

Related-To: NEO-10190

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
Chodor, Jaroslaw
2024-02-12 16:41:21 +00:00
committed by Compute-Runtime-Automation
parent 57c946b61c
commit b58717b9e3
7 changed files with 130 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -231,10 +231,10 @@ class ConstStringRef {
}
ret.reserve(len);
ret.append(*container.begin());
for (auto it = container.begin() + 1, e = container.end(); it != e; ++it) {
ret.append(container.begin()->data(), container.begin()->size());
for (auto it = std::next(container.begin()), e = container.end(); it != e; ++it) {
ret.append(this->ptr, this->len);
ret.append(*it);
ret.append(it->data(), it->size());
}
return ret;
}