OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Fix AArch64 multi-ISA LTO codegen isolation (#35994)
Nesterov Alexander2b6aa4d96cff
diff --git a/cmake/developer_package/cross_compile/cross_compiled_func.cmake b/cmake/developer_package/cross_compile/cross_compiled_func.cmakeindex e024061f6f0..1245dd363d9 100644--- a/cmake/developer_package/cross_compile/cross_compiled_func.cmake+++ b/cmake/developer_package/cross_compile/cross_compiled_func.cmake@@ -150,6 +150,14 @@ function(_clone_source_to_target_with_archs TARGET SOURCE ARCH_SET)set_property(SOURCE ${ARCH_SOURCE} APPEND_STRING PROPERTY COMPILE_OPTIONS"${_FLAGS_${_arch}}")+ if(ENABLE_LTO AND LINUX AND AARCH64 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")+ # GCC LTO may merge target options from runtime-dispatched AArch64+ # variants into baseline code during the final link. Keep these+ # ISA-specific clones as regular objects so each variant preserves+ # its own compile-time architecture while generic code stays generic.+ set_property(SOURCE ${ARCH_SOURCE} APPEND PROPERTY COMPILE_OPTIONS -fno-lto)+ endif()+set_property(SOURCE ${ARCH_SOURCE} APPEND PROPERTY COMPILE_DEFINITIONS${_DEFINE_${_arch}}"XARCH=${_arch}" ## to replace XARCH with direct ARCH namediff --git a/src/bindings/python/tests/test_runtime/test_async_infer_request.py b/src/bindings/python/tests/test_runtime/test_async_infer_request.pyindex b5a7b963e16..dc30d559f08 100644--- a/src/bindings/python/tests/test_runtime/test_async_infer_request.py+++ b/src/bindings/python/tests/test_runtime/test_async_infer_request.py@@ -7,7 +7,6 @@ from copy import deepcopyimport numpy as npimport pytestimport time-import platformimport openvino.opset13 as opsfrom openvino import (@@ -327,11 +326,6 @@ def test_start_async(device, share_inputs):])@pytest.mark.parametrize("share_inputs", [True, False])def test_async_mixed_values(device, ov_type, numpy_dtype, share_inputs):- if share_inputs and ov_type == Type.i16 and numpy_dtype == np.int16 and (- platform.machine().lower() in {"aarch64", "arm64"}- ):- pytest.skip("Illegal instruction on ARM64 for Type.i16/np.int16 with share_inputs=True, ticket: 179098")-request, tensor1, array1 = generate_concat_compiled_model_with_data(device=device, ov_type=ov_type, numpy_dtype=numpy_dtype)