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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3f29dd5
upgrading to beta V 2 of ort with optional compilation of GPU
maxwellflitton Dec 24, 2024
e1eb109
upgrading to beta V 2 of ort with optional compilation of GPU
maxwellflitton Dec 24, 2024
d33d9af
c-wrapper working
maxwellflitton Dec 24, 2024
ac1c133
unit testing for C dylib is now working
maxwellflitton Dec 25, 2024
9922332
raw-compute testing is now working
maxwellflitton Dec 26, 2024
cdec7c0
buffered compute is now working and passing tests
maxwellflitton Dec 26, 2024
8adeb23
raw compute with C dylib now working for surrealml python client
maxwellflitton Dec 27, 2024
306df6a
all local functions are now working with the raw C bindings, just nee…
maxwellflitton Dec 30, 2024
a009bce
upload is now not erroring
maxwellflitton Jan 2, 2025
f127d36
now adding act runtimes for local CI testing
maxwellflitton Jan 3, 2025
8fa94f6
now adding act runtimes for local CI testing
maxwellflitton Jan 3, 2025
c36806a
now adding act runtimes for local CI testing
maxwellflitton Jan 3, 2025
b9dcef7
docker builds are working and cross platform build defined
maxwellflitton Jan 8, 2025
c3bb8a4
Remove clients/python/build-context from repository
maxwellflitton Jan 8, 2025
87cb5a9
local docker builds are working and cross build is defined in github …
maxwellflitton Jan 8, 2025
bc22004
building docker builds for c-wrapper
maxwellflitton Jan 9, 2025
f9b7f62
how running tests in docker
maxwellflitton Jan 10, 2025
a89b855
testing cross compilation
maxwellflitton Jan 10, 2025
e6ec80c
trying to configure cross compilation in docker
maxwellflitton Jan 10, 2025
f4145ae
mapping build steps
maxwellflitton Jan 14, 2025
6e12b7e
dynamic C lib now linking to onnxruntime
maxwellflitton Jan 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build All Platforms

on:
push:
branches:
- main
pull_request:

jobs:
macos:
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:
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:
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/
28 changes: 28 additions & 0 deletions .github/workflows/c_wrapper_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run C-wrapper unit tests

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
test_core:
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
34 changes: 1 addition & 33 deletions .github/workflows/surrealml_core_onnx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,5 @@ jobs:
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: Pre-test Setup
run: |
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

# build the local version of the core module to be loaded into python
echo "Building local version of core module"

pip install .
export PYTHONPATH="."

python ./tests/scripts/ci_local_build.py
echo "Local build complete"

# train the models for the tests
python ./tests/model_builder/onnx_assets.py
deactivate

- name: Run Core Unit Tests
run: cd modules/core && cargo test --features onnx-tests
run: cd modules/core && docker build -t rust-onnx-runtime . && docker run --rm rust-onnx-runtime cargo test --features onnx-tests
34 changes: 1 addition & 33 deletions .github/workflows/surrealml_core_tensorflow_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,5 @@ jobs:
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: Pre-test Setup
run: |
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

# build the local version of the core module to be loaded into python
echo "Building local version of core module"

pip install .
export PYTHONPATH="."

python ./tests/scripts/ci_local_build.py
echo "Local build complete"

# train the models for the tests
python ./tests/model_builder/tensorflow_assets.py
deactivate

- name: Run Core Unit Tests
run: cd modules/core && cargo test --features tensorflow-tests
run: cd modules/core && docker build -t rust-onnx-runtime . && docker run --rm rust-onnx-runtime cargo test --features tensorflow-tests
44 changes: 1 addition & 43 deletions .github/workflows/surrealml_core_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,5 @@ jobs:
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: Pre-test Setup
run: |
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

# build the local version of the core module to be loaded into python
echo "Building local version of core module"

pip install .
export PYTHONPATH="."

python ./tests/scripts/ci_local_build.py
echo "Local build complete"

# train the models for the tests
python ./tests/model_builder/sklearn_assets.py
deactivate

- name: Run Python Unit Tests
run: |
source venv/bin/activate
export PYTHONPATH="."
python tests/unit_tests/engine/test_sklearn.py
deactivate

- name: Run Core Unit Tests
run: cd modules/core && cargo test --features sklearn-tests

- name: Run HTTP Transfer Tests
run: cargo test
run: cd modules/core && docker build -t rust-onnx-runtime . && docker run --rm rust-onnx-runtime cargo test --features sklearn-tests
43 changes: 1 addition & 42 deletions .github/workflows/surrealml_core_torch_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,5 @@ jobs:
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: Pre-test Setup
run: |
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

# build the local version of the core module to be loaded into python
echo "Building local version of core module"

pip install .
export PYTHONPATH="."

python ./tests/scripts/ci_local_build.py
echo "Local build complete"

# train the models for the tests
python ./tests/model_builder/torch_assets.py
deactivate

- name: Run Python Unit Tests
run: |
source venv/bin/activate
export PYTHONPATH="."
python tests/unit_tests/engine/test_torch.py
python tests/unit_tests/test_rust_adapter.py
python tests/unit_tests/test_surml_file.py
deactivate

- name: Run Core Unit Tests
run: cd modules/core && cargo test --features torch-tests
run: cd modules/core && docker build -t rust-onnx-runtime . && docker run --rm rust-onnx-runtime cargo test --features torch-tests
Loading
Loading