Skip to content

Add a build validation for Linux ARM64 cross-compile - #18200

Merged
snnn merged 31 commits into
mainfrom
snnn/arm_gcc
Nov 8, 2023
Merged

Add a build validation for Linux ARM64 cross-compile#18200
snnn merged 31 commits into
mainfrom
snnn/arm_gcc

Conversation

@snnn

@snnn snnn commented Oct 31, 2023

Copy link
Copy Markdown
Contributor

Description

  1. Add a build validation for Linux ARM64/ARM32 cross-compile to catch issues listed in [Build] Linux arm build error CompressedStorage.h:93:80: error: overflow #18195 .
  2. Revert eigen's commit id back to what we had before.

Motivation and Context

To catch cross-compile issues.
Related: AB#21639

@snnn
snnn requested a review from a team October 31, 2023 20:15
Changming Sun added 2 commits October 31, 2023 13:50
Comment thread tools/ci_build/replace_urls_in_deps.py Fixed
@snnn
snnn marked this pull request as draft October 31, 2023 23:32
@snnn snnn linked an issue Oct 31, 2023 that may be closed by this pull request
@snnn
snnn marked this pull request as ready for review November 1, 2023 02:29
@snnn

snnn commented Nov 3, 2023

Copy link
Copy Markdown
Contributor Author

/azp run Windows GPU CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@snnn
snnn requested a review from a team as a code owner November 3, 2023 17:58
@devigned

devigned commented Nov 7, 2023

Copy link
Copy Markdown
Member

Can confirm running this on darwin/arm64 results in a successful build and test pass.

100% tests passed, 0 tests failed out of 3

Total Test time (real) = 163.13 sec
2023-11-07 10:50:03,836 build [INFO] - Build complete

related #18322

@skottmckay

skottmckay commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

I don't think the patch file for eigen is needed any more. It supposedly fixed an unused arg error but the eigen source seems to have that change included, it was only applied to ACL builds, and the args were incorrect for use with patch (has a git apply arg but that can't be used with the fetchcontent approach. See #15248.

Can be done as a separate PR if it helps get this checked in faster.

@snnn
snnn merged commit 8125325 into main Nov 8, 2023
@snnn
snnn deleted the snnn/arm_gcc branch November 8, 2023 21:03
snnn pushed a commit that referenced this pull request Nov 9, 2023
…d tests (#18346)

### Description
This PR gets the onnxruntime Rust bindings to a foundation where they
can be extended and validated as the onnxruntime progresses.
Specifically, the PR does the following.
- fixes some of the existing compilation issues due to missing some
enums output tensor data types.
- introduces a `just vendor` task that will vendor the source code from
the onnxruntime to enable a common base directory within the crate
directory rather than using a relative parent path. This enables `crate
package` to be able to archive the onnxruntime native code, which will
enable consumers of the onnxruntime-sys crate to be able to compile on
their target.
- introduces a GH action to lint the Rust code (rustfmt, clippy), build
the library, validate through tests, and validate crate can package
correctly.


TODOs:
- [x] This PR is based on #18200 and will need to be rebased once that
PR is merged.



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

This is the first step to getting new onnxruntime Rust crates published
through this project, which will unblock community Rust projects which
would like to take a dependency on onnxruntime Rust.

Follow up work to enable publication of onnxruntime Rust crates:
- change name of the crates to be published (onnxruntime-rs and
onnxruntime-sys are already taken and we'll need new names)
- update authors / license to reflect contributions from previous
maintainer(s) and new maintainers
- introduce a crate publish GH action or ADO pipeline

---------

Signed-off-by: David Justice <david@devigned.com>
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
### Description
1. Add a build validation for Linux ARM64/ARM32 cross-compile to catch
issues listed in microsoft#18195 .
2. Revert eigen's commit id back to what we had before. 


### Motivation and Context
To catch cross-compile issues.
Added a TODO item for fixing the compile warnings in Linux ARM32 build: AB#21639
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
…d tests (microsoft#18346)

### Description
This PR gets the onnxruntime Rust bindings to a foundation where they
can be extended and validated as the onnxruntime progresses.
Specifically, the PR does the following.
- fixes some of the existing compilation issues due to missing some
enums output tensor data types.
- introduces a `just vendor` task that will vendor the source code from
the onnxruntime to enable a common base directory within the crate
directory rather than using a relative parent path. This enables `crate
package` to be able to archive the onnxruntime native code, which will
enable consumers of the onnxruntime-sys crate to be able to compile on
their target.
- introduces a GH action to lint the Rust code (rustfmt, clippy), build
the library, validate through tests, and validate crate can package
correctly.


TODOs:
- [x] This PR is based on microsoft#18200 and will need to be rebased once that
PR is merged.



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

This is the first step to getting new onnxruntime Rust crates published
through this project, which will unblock community Rust projects which
would like to take a dependency on onnxruntime Rust.

Follow up work to enable publication of onnxruntime Rust crates:
- change name of the crates to be published (onnxruntime-rs and
onnxruntime-sys are already taken and we'll need new names)
- update authors / license to reflect contributions from previous
maintainer(s) and new maintainers
- introduce a crate publish GH action or ADO pipeline

---------

Signed-off-by: David Justice <david@devigned.com>
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.

5 participants