Skip to content

Commit

Permalink
Refactoring for improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
uazizTT committed Nov 8, 2024
1 parent 03d0e8a commit 7d7d6b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/run-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Build

on:
workflow_dispatch:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:

# # Run tests on TT hardware

build-and-run-tests:
build:
timeout-minutes: 120
strategy:
fail-fast: false
Expand Down Expand Up @@ -151,22 +151,11 @@ jobs:
- name: Copy tt-metal binaries
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/lib/*.so lib/

- name: Copy libfmt
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/_deps/fmt-build/*.so* lib/

- name: Copy libnng
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/_deps/nanomsg-build/*.so* lib/

- name: Copy libuv
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/_deps/libuv-build/*.so* lib/
run: |
cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/lib/*.so lib/
cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/_deps/fmt-build/*.so* lib/
cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/_deps/nanomsg-build/*.so* lib/
cp ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal-build/_deps/libuv-build/*.so* lib/
- name: Copy tt-metal directories
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Run Tests

on:
workflow_dispatch:
Expand Down Expand Up @@ -80,5 +80,6 @@ jobs:
- name: Run ONNX tests
shell: bash
run: |
source env/activate
export LD_LIBRARY_PATH="/opt/ttmlir-toolchain/lib/:${{ steps.strings.outputs.install-output-dir }}/lib:${{ steps.strings.outputs.build-output-dir }}/lib:./lib/:${LD_LIBRARY_PATH}"
pytest -v tests/onnx

0 comments on commit 7d7d6b7

Please sign in to comment.