Skip to content

Commit d1f597e

Browse files
authored
Arm backend: Update tag for ML SDK emulation layer. (#24662)
We need to update it, otherwise we build 0.9 version of the emulation layer. cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani Signed-off-by: Elena Zhelezina <elena.zhelezina@arm.com>
1 parent 64c0e4e commit d1f597e

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

‎backends/arm/scripts/setup-mlsdk-from-source.sh‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ root_dir="${et_dir}/examples/arm/arm-scratch"
1515
setup_path_script=""
1616
mlsdk_manifest_dir="ml-sdk-for-vulkan-manifest"
1717
mlsdk_manifest_url="${MLSDK_MANIFEST_URL:-https://github.com/arm/ai-ml-sdk-manifest.git}"
18-
mlsdk_manifest_tag="${MLSDK_MANIFEST_TAG:-refs/tags/v2026.09.0}" # Keep this in sync with backends/arm/requirements-arm-vgf.txt and backends/arm/requirements-arm-vgf-runtime.txt
18+
mlsdk_manifest_tag="${MLSDK_MANIFEST_TAG:-refs/tags/v2026.12.0.dev20261027}" # Keep this in sync with backends/arm/requirements-arm-vgf.txt and backends/arm/requirements-arm-vgf-runtime.txt
1919

2020
enable_model_converter=0
2121
enable_vgf_lib=0
2222
enable_emulation_layer=0
2323
enable_vulkan_sdk=0
24+
expected_emulation_layer_version="0.11.0"
2425

2526
source "${script_dir}/utils.sh"
2627
source "${script_dir}/vulkan_utils.sh"
@@ -241,6 +242,41 @@ function download_ai_mlsdk_manifest() {
241242
mlsdk_sync_manifest "${manifest_dir}"
242243
}
243244

245+
function validate_emulation_layer_source_version() {
246+
local manifest_dir="$1"
247+
local emulation_layer_dir="${manifest_dir}/sw/emulation-layer"
248+
local pyproject="${emulation_layer_dir}/pyproject.toml"
249+
local source_version=""
250+
251+
if [[ ! -f "${pyproject}" ]]; then
252+
log_step "mlsdk" \
253+
"Unable to validate emulation-layer source version: ${pyproject} not found"
254+
return 1
255+
fi
256+
257+
source_version="$(
258+
sed -nE 's/^[[:space:]]*fallback_version[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/p' \
259+
"${pyproject}" | head -n 1
260+
)"
261+
262+
if [[ -z "${source_version}" ]]; then
263+
log_step "mlsdk" \
264+
"Unable to determine emulation-layer source version from ${pyproject}"
265+
return 1
266+
fi
267+
268+
if [[ "${source_version}" != "${expected_emulation_layer_version}" ]]; then
269+
log_step "mlsdk" \
270+
"Emulation-layer source version mismatch: expected ${expected_emulation_layer_version}, found ${source_version}."
271+
log_step "mlsdk" \
272+
"The selected MLSDK manifest (${mlsdk_manifest_tag}) is not in sync with backends/arm/requirements-arm-vgf.txt."
273+
return 1
274+
fi
275+
276+
log_step "mlsdk" \
277+
"Validated emulation-layer source version ${source_version}"
278+
}
279+
244280
function setup_mlsdk_source() {
245281
local manifest_dir="$1"
246282

@@ -255,6 +291,10 @@ function setup_mlsdk_source() {
255291
log_step "mlsdk" "Syncing MLSDK manifest into ${manifest_dir}"
256292
download_ai_mlsdk_manifest "${manifest_dir}"
257293

294+
if [[ "${enable_emulation_layer}" -eq 1 ]]; then
295+
validate_emulation_layer_source_version "${manifest_dir}"
296+
fi
297+
258298
pushd "${manifest_dir}" >/dev/null || return 1
259299
local parallel_jobs
260300
parallel_jobs="$(get_parallel_jobs)"

0 commit comments

Comments
 (0)