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

upgrading to beta V 2 of ort with optional compilation of GPU #63

Merged
merged 27 commits into from
Mar 5, 2025

Conversation

maxwellflitton
Copy link
Contributor

@maxwellflitton maxwellflitton commented Dec 24, 2024

This is passing the sklearn unit tests and is now updated to the V 2 version of ort. There is also an optional build for GPU but this will have to be built inside a special Docker image with access to the Nvidia GPU. The dynamic C lib compilation and support is now available for the new python client. This dynamic C lib approach also enables us to build clients in other languages such as JavaScript.

Comment on lines +11 to +34
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-apple-darwin,aarch64-apple-darwin

- name: Build macOS binaries
working-directory: modules/c-wrapper
run: |
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin

- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: macos-binaries
path: modules/c-wrapper/target/*/release/

linux:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines +35 to +58
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu

- name: Build Linux binaries
working-directory: modules/c-wrapper
run: |
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --release --target aarch64-unknown-linux-gnu

- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: linux-binaries
path: modules/c-wrapper/target/*/release/

windows:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines +59 to +80
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-gnu,aarch64-pc-windows-gnu

- name: Build Windows binaries
working-directory: modules/c-wrapper
run: |
cargo build --release --target x86_64-pc-windows-gnu
cargo build --release --target aarch64-pc-windows-gnu

- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: windows-binaries
path: modules/c-wrapper/target/*/release/

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines +9 to +28
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Run Core Unit Tests
run: cd modules/c-wrapper/scripts && sh build-docker.sh

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
@maxwellflitton maxwellflitton merged commit 2c50e26 into main Mar 5, 2025
8 of 11 checks passed
@maxwellflitton maxwellflitton deleted the refactor branch March 5, 2025 14:51
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.

1 participant