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

[GHA] VS 2022 #28520

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

[GHA] VS 2022 #28520

wants to merge 8 commits into from

Conversation

mryzhov
Copy link
Contributor

@mryzhov mryzhov commented Jan 17, 2025

Details:

  • Switch Windows pipelines to VS 2022

Tickets:

  • ticket-id

@mryzhov mryzhov requested a review from a team as a code owner January 17, 2025 14:03
@github-actions github-actions bot added category: CI OpenVINO public CI github_actions Pull requests that update GitHub Actions code labels Jan 17, 2025
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
toolset: 14.29
toolset: 14.40 # v2022
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to ensure that places where OV provider is used, also use VS 2022, otherwise can have issues like in GenAI when Pybind11 code cannot recognize ov::Tensor compiled with different compiler version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ilya-lavrenov ilya-lavrenov self-assigned this Jan 18, 2025
@mryzhov mryzhov requested a review from a team as a code owner January 19, 2025 18:48
@github-actions github-actions bot added category: build OpenVINO cmake script / infra category: Python API OpenVINO Python bindings category: packaging OpenVINO packaging / distribution labels Jan 19, 2025
@mryzhov mryzhov requested a review from a team as a code owner January 20, 2025 20:17
@mryzhov mryzhov requested review from AlexKoff88 and artanokhov and removed request for a team January 20, 2025 20:17
@github-actions github-actions bot added the category: dependency_changes Pull requests that update a dependency file label Jan 20, 2025

add_custom_target(ie_wheel ALL DEPENDS ${openvino_wheel_path})

if(NOT WIN32)
Copy link
Contributor

@ilya-lavrenov ilya-lavrenov Jan 20, 2025

Choose a reason for hiding this comment

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

why is it needed?

I suppose you can play with warning message to be more accurate or skipped per platform:

message(WARNING "Failed to find 'fdupes' tool, use 'sudo apt-get install fdupes' to install it")

Copy link
Contributor Author

@mryzhov mryzhov Jan 20, 2025

Choose a reason for hiding this comment

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

Do we expect to use fdupes on Windows? If no, we don't need to execute this custom command on Windows at all

@mryzhov mryzhov requested a review from a team as a code owner January 20, 2025 22:02
@@ -147,7 +147,7 @@ add_custom_command(OUTPUT "${fdupes_report}"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Run 'fdupes' checks for wheel ${openvino_wheel_name}"
VERBATIM)

Copy link
Contributor

Choose a reason for hiding this comment

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

please, revert changes in this file

and configure your IDE to drop trailing spaces on file saving ;)

@@ -12,7 +12,13 @@ endforeach()

find_program(fdupes_PROGRAM NAMES fdupes DOC "Path to fdupes")
if(NOT fdupes_PROGRAM)
message(WARNING "Failed to find 'fdupes' tool, use 'sudo apt-get install fdupes' to install it")
set(fdupes_install_msg "refer to your platform's package manager or install it manually.")
if(Linux)
Copy link
Contributor

Choose a reason for hiding this comment

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

Linux is not cmake variable.

since src/bindings/python/wheel/fdupes_check.cmake is a separate file, I am not sure that LINUX (defined here https://github.com/openvinotoolkit/openvino/blob/master/cmake/developer_package/target_flags.cmake#L85-L87) is available in this file.

BTW, Linux is a target platform, while you can compile from macOS to Linux.
So, you need to make condition depending on host platform:

{D534631C-3391-4B12-B092-65BDA3410F5B}

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: dependency_changes Pull requests that update a dependency file category: packaging OpenVINO packaging / distribution category: Python API OpenVINO Python bindings github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants