Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] [GHA] Introduce Android x64 workflow #26086

Merged
merged 42 commits into from
Aug 29, 2024

Conversation

akashchi
Copy link
Contributor

Tickets:

  • 148716

@akashchi akashchi added the WIP work in progress label Aug 16, 2024
@akashchi akashchi added this to the 2024.4 milestone Aug 16, 2024
@github-actions github-actions bot added category: CI OpenVINO public CI github_actions Pull requests that update GitHub Actions code category: dockerfiles labels Aug 16, 2024
ANDROID_NDK_HOME: '/deps/android_tools/ndk-bundle'
ANDROID_SDK_VERSION: 29
ANDROID_ABI_CONFIG: x86_64
VCPKG_TARGET_TRIPLET: x86-android
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
VCPKG_TARGET_TRIPLET: x86-android
VCPKG_TARGET_TRIPLET: x64-android

git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gtest
git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gflags
git submodule update --init -- ${OPENVINO_REPO}/thirdparty/xbyak
git submodule update --init -- ${OPENVINO_REPO}/thirdparty/protobuf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope that list of extra fetched submodules should be the same as for arm64 Android.

-DVCPKG_HOST_TRIPLET=x64-linux-release \
-DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake \
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can temporary disable this flag

-DENABLE_SYSTEM_PUGIXML=ON \
-DENABLE_SYSTEM_SNAPPY=ON \
-DENABLE_SYSTEM_TBB=ON \
-DENABLE_INTEL_NPU=OFF \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a condition to cmake to enable NPU only Linux and Windows

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, please take a look.

@github-actions github-actions bot added the category: build OpenVINO cmake script / infra label Aug 19, 2024
@akashchi
Copy link
Contributor Author

akashchi commented Aug 19, 2024

@ilya-lavrenov, do we need to align the workflow with that of Jenkins or do we proceed with what is in the arm workflow? As I can see, there are quite a few differences: e.g., cmake options, compilers, NDK version, usage of VCPKG, ninja, etc.

@@ -49,7 +49,7 @@ else()
set(ENABLE_INTEL_NPU_DEFAULT OFF)
endif()

ov_dependent_option (ENABLE_INTEL_NPU "NPU plugin for OpenVINO runtime" ${ENABLE_INTEL_NPU_DEFAULT} "X86 OR X86_64;NOT APPLE" OFF)
ov_dependent_option (ENABLE_INTEL_NPU "NPU plugin for OpenVINO runtime" ${ENABLE_INTEL_NPU_DEFAULT} "(X86 OR X86_64) AND (WIN32 OR LINUX);NOT APPLE" OFF)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ov_dependent_option (ENABLE_INTEL_NPU "NPU plugin for OpenVINO runtime" ${ENABLE_INTEL_NPU_DEFAULT} "(X86 OR X86_64) AND (WIN32 OR LINUX);NOT APPLE" OFF)
ov_dependent_option (ENABLE_INTEL_NPU "NPU plugin for OpenVINO runtime" ON "X86_64;WIN32 OR LINUX" OFF)

could you please also drop ENABLE_INTEL_NPU_DEFAULT definition?

@akashchi akashchi requested a review from ilya-lavrenov August 20, 2024 11:06
@akashchi akashchi enabled auto-merge August 20, 2024 14:15
auto-merge was automatically disabled August 21, 2024 14:09

Pull Request is not mergeable

@akashchi akashchi enabled auto-merge August 21, 2024 14:42
@akashchi akashchi added this pull request to the merge queue Aug 29, 2024
Merged via the queue into openvinotoolkit:master with commit 3ffb013 Aug 29, 2024
150 checks passed
@akashchi akashchi deleted the ci/gha/introduce-android-x64 branch August 29, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra category: CI OpenVINO public CI category: dockerfiles github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants