Skip to content

Commit

Permalink
Refactored code to support multiple GPU backends.
Browse files Browse the repository at this point in the history
Moved GPU code into correlation/gpu.
  • Loading branch information
zlogic committed Feb 3, 2024
1 parent 2860542 commit 9fecf2c
Show file tree
Hide file tree
Showing 21 changed files with 603 additions and 527 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cargo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ jobs:

- name: Compile shaders
run: |
xcrun -sdk macosx metal -c src/correlation/correlation.metal -o src/correlation/correlation.air
xcrun -sdk macosx metallib src/correlation/correlation.air -o src/correlation/correlation.metallib
xcrun -sdk macosx metal -c src/correlation/gpu/shaders/correlation.metal -o src/correlation/gpu/shaders/correlation.air
xcrun -sdk macosx metallib src/correlation/gpu/shaders/correlation.air -o src/correlation/gpu/shaders/correlation.metallib
- name: Build
run: cargo build --target=${{ matrix.arch }}-apple-darwin --release
Expand All @@ -180,7 +180,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: shaders-metallib
path: src/correlation/correlation.metallib
path: src/correlation/gpu/shaders/correlation.metallib

- name: Upload application
uses: actions/upload-artifact@v4
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 9fecf2c

Please sign in to comment.