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

Build onnxruntime.dll as arm64x #18633

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Conversation

moyo1997
Copy link
Contributor

@moyo1997 moyo1997 commented Nov 29, 2023

Build onnxruntime.dll as arm64x

Added a .cmake file to generate a link repro of the onnxruntime.dll during arm64 build. This provides us a directory containing all the arm64 objs, def file and libs to link to when it is time to building arm64x onnxruntime.dll during the arm64ec build by passing the /machine:arm64x flag to the linker along with the arm64 artifacts.

If other dlls wanted to be built as x, setting the ARM64X_TARGETS variable in the toplevel cmakelists.txt to include these other targets is all that will be needed.

Added build_arm64x.bat as a wrapper for the multiple (rm64, then arm64ec) cmake calls needed to build as arm64x.

build_arm64x.bat Show resolved Hide resolved
@snnn
Copy link
Member

snnn commented Nov 30, 2023

What is arm64x?

@snnn
Copy link
Member

snnn commented Nov 30, 2023

I'm not sure what this PR is for. This change doesn't seem to be general. Let's have an offline discussion first.

@snnn snnn closed this Nov 30, 2023
@snnn snnn reopened this Dec 6, 2023
@snnn
Copy link
Member

snnn commented Dec 6, 2023

/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux OpenVINO CI Pipeline, Linux QNN CI Pipeline, MacOS CI Pipeline, Windows ARM64 QNN CI Pipeline, Windows CPU CI Pipeline

@snnn
Copy link
Member

snnn commented Dec 6, 2023

/azp run Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, Windows x64 QNN CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed

Copy link

Azure Pipelines successfully started running 9 pipeline(s).

Copy link

Azure Pipelines successfully started running 7 pipeline(s).

@snnn snnn merged commit 9479ba5 into microsoft:main Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants