Skip to content

Commit

Permalink
Update .gitmodules
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Sep 2, 2024
1 parent fc2dee4 commit 0d5a546
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 23 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,23 @@ jobs:
run: |
/gitmirror/scripts/trigger_update_mirrors.sh
/gitmirror/scripts/git_config.sh
- name: "Checking out repository"
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
submodules: recursive
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REPO_ADDRESS: ${{ github.server_url }}/${{ github.repository }}
run: |
git \
-c submodule."third_party/torch-mlir".update=none \
-c submodule."third_party/stablehlo".update=none \
-c submodule."src/runtime_src/core/common/aiebu".update=none \
clone \
--recursive \
--shallow-submodules \
--depth 1 \
-b $BRANCH_NAME $REPO_ADDRESS
cd iree-amd-aie
- name: Install deps
run: |
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,21 @@ jobs:
timezoneWindows: "Singapore Standard Time"

- name: "Checking out repository"
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
submodules: recursive
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REPO_ADDRESS: ${{ github.server_url }}/${{ github.repository }}
run: |
git \
-c submodule."third_party/torch-mlir".update=none \
-c submodule."third_party/stablehlo".update=none \
-c submodule."src/runtime_src/core/common/aiebu".update=none \
clone \
--recursive \
--shallow-submodules \
--depth 1 \
-b $BRANCH_NAME $REPO_ADDRESS
cd iree-amd-aie
- uses: actions/setup-python@v4
with:
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,21 @@ jobs:
timezoneWindows: "Singapore Standard Time"

- name: "Checking out repository"
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
submodules: recursive
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REPO_ADDRESS: ${{ github.server_url }}/${{ github.repository }}
run: |
git \
-c submodule."third_party/torch-mlir".update=none \
-c submodule."third_party/stablehlo".update=none \
-c submodule."src/runtime_src/core/common/aiebu".update=none \
clone \
--recursive \
--shallow-submodules \
--depth 1 \
-b $BRANCH_NAME $REPO_ADDRESS
cd iree-amd-aie
- name: Setup Cpp
uses: aminya/setup-cpp@v1
Expand Down
8 changes: 0 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,3 @@
path = third_party/iree
url = https://github.com/iree-org/iree.git
shallow = true
[submodule "third_party/stablehlo"]
path = third_party/iree/third_party/stablehlo
url = https://github.com/iree-org/stablehlo.git
update = none
[submodule "third_party/torch-mlir"]
path = third_party/iree/third_party/torch-mlir
url = https://github.com/iree-org/torch-mlir.git
update = none
32 changes: 26 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,37 @@ interfacing the AMD AIE accelerator to IREE.

## Developer Setup

These instructions assume that you have an appropriate IREE checkout side by side
with this repository have an IREE build setup in an `iree-build` directory that
is also a sibling. This is not a requirement, but instructions will need to be
changed for different paths.
**Strong recommendation**: check the CI scripts @ [.github/workflows](.github/workflows) - they do a fresh/clean
checkout and build and are exercised on every commit *and* are written such that they're simple enough to be read
by even a non-CI expert.

Preparing repository:
### Getting the repository:

Either

```
# ssh
git clone --recursive [email protected]:nod-ai/iree-amd-aie.git
# https
git clone --recursive https://github.com/nod-ai/iree-amd-aie.git
```

or if you want a faster checkout

```
git submodule update --init --recursive
git \
-c submodule."third_party/torch-mlir".update=none \
-c submodule."third_party/stablehlo".update=none \
-c submodule."src/runtime_src/core/common/aiebu".update=none \
clone \
--recursive \
--depth 1 \
--shallow-submodules \
https://github.com/nod-ai/iree-amd-aie.git
```

which has the effect of not cloning entire repo histories *and* skipping nested submodules that we currently do not need.

## Building (along with IREE)

### Just show me the CMake
Expand Down

0 comments on commit 0d5a546

Please sign in to comment.