|
9 | 9 | paths: |
10 | 10 | - '.github/workflows/enzyme-bazel.yml' |
11 | 11 | - 'enzyme/Enzyme/**' |
12 | | - - 'enzyme/includes/**' |
| 12 | + - 'enzyme/include/**' |
13 | 13 | - 'enzyme/test/**' |
14 | 14 | - 'enzyme/tools/**' |
15 | 15 | - 'enzyme/BUILD' |
|
20 | 20 | paths: |
21 | 21 | - '.github/workflows/enzyme-bazel.yml' |
22 | 22 | - 'enzyme/Enzyme/**' |
23 | | - - 'enzyme/includes/**' |
| 23 | + - 'enzyme/include/**' |
24 | 24 | - 'enzyme/test/**' |
25 | 25 | - 'enzyme/tools/**' |
26 | 26 | - 'enzyme/BUILD' |
@@ -48,31 +48,34 @@ jobs: |
48 | 48 | timeout-minutes: 500 |
49 | 49 |
|
50 | 50 | container: |
51 | | - image: ${{ (contains(matrix.os, 'linux') && 'ghcr.io/enzymead/reactant-docker-images@sha256:91e1edb7a7c869d5a70db06e417f22907be0e67ca86641d48adcea221fedc674' ) || '' }} |
| 51 | + image: ${{ (contains(matrix.os, 'linux') && 'ghcr.io/enzymead/reactant-docker-images@sha256:d1ef9dda4ae609152f96ff0bf1e3ddec62c2969a020fed96f72daf1908bc5f34' ) || '' }} |
52 | 52 |
|
53 | 53 | steps: |
54 | 54 | - name: Install dependencies |
55 | 55 | run: | |
56 | 56 | apt-get update |
57 | 57 | apt-get install -y binutils ninja-build cmake gcc g++ python3 python3-dev |
58 | 58 |
|
59 | | - - uses: actions/checkout@v4 |
| 59 | + - name: Check out Reactant |
| 60 | + uses: actions/checkout@v6 |
60 | 61 | with: |
61 | 62 | path: 'Reactant' |
62 | 63 |
|
63 | | - |
64 | | - - uses: actions/checkout@v4 |
| 64 | + - name: Check out LLVM |
| 65 | + uses: actions/checkout@v6 |
65 | 66 | with: |
66 | 67 | repository: 'llvm/llvm-project' |
67 | 68 | ref: '4749bf56a65e38ee7b05ac7f9fe261aab6cb5bc6' |
68 | 69 | path: 'llvm-project' |
69 | | - |
70 | | - - uses: actions/checkout@v4 |
| 70 | + |
| 71 | + - name: Check out Enzyme-JAX |
| 72 | + uses: actions/checkout@v6 |
71 | 73 | with: |
72 | 74 | repository: 'EnzymeAD/Enzyme-JaX' |
73 | 75 | path: 'Enzyme-JaX' |
74 | | - |
75 | | - - uses: actions/checkout@v4 |
| 76 | + |
| 77 | + - name: Check out Enzyme GPU Tests |
| 78 | + uses: actions/checkout@v6 |
76 | 79 | with: |
77 | 80 | repository: 'wsmoses/Enzyme-GPU-Tests' |
78 | 81 | path: 'Enzyme-GPU-Tests' |
|
94 | 97 | working-directory: 'llvm-project' |
95 | 98 | run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT |
96 | 99 |
|
97 | | - |
98 | 100 | - name: Cache MLIR |
99 | 101 | id: cache-mlir |
100 | 102 | uses: actions/cache@v4 |
@@ -129,31 +131,31 @@ jobs: |
129 | 131 | # Share repository cache between workflows. |
130 | 132 | repository-cache: true |
131 | 133 | bazelisk-version: 1.x |
132 | | - |
| 134 | + |
133 | 135 | - name: Set BAZEL_FLAGS |
134 | 136 | shell: bash |
135 | 137 | run: | |
136 | | - set -e |
137 | | - BAZEL_FLAGS="" |
138 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --linkopt=-fuse-ld=lld" |
139 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_TOPOLOGY" |
140 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_WORKER_ID" |
141 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_SKIP_MDS_QUERY=true" |
142 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_TOPOLOGY_WRAP" |
143 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_CHIPS_PER_HOST_BOUNDS" |
144 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_ACCELERATOR_TYPE" |
145 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_RUNTIME_METRICS_PORTS" |
146 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_TOPOLOGY_ALT" |
147 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_HOST_BOUNDS" |
148 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=TPU_WORKER_HOSTNAMES" |
149 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=CHIPS_PER_HOST_BOUNDS" |
150 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=HOST_BOUNDS" |
151 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=ALT=false" |
152 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=WRAP" |
153 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=VBAR_CONTROL_SERVICE_URL" |
154 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --repo_env=CC=`which clang`" |
155 | | - BAZEL_FLAGS="${BAZEL_FLAGS} --define=using_clang=true" |
156 | | - echo "BAZEL_FLAGS=${BAZEL_FLAGS}" >> "${GITHUB_ENV}" |
| 138 | + BAZEL_FLAGS=( |
| 139 | + --linkopt=-fuse-ld=lld |
| 140 | + --test_env=TPU_TOPOLOGY |
| 141 | + --test_env=TPU_WORKER_ID |
| 142 | + --test_env=TPU_SKIP_MDS_QUERY=true |
| 143 | + --test_env=TPU_TOPOLOGY_WRAP |
| 144 | + --test_env=TPU_CHIPS_PER_HOST_BOUNDS |
| 145 | + --test_env=TPU_ACCELERATOR_TYPE |
| 146 | + --test_env=TPU_RUNTIME_METRICS_PORTS |
| 147 | + --test_env=TPU_TOPOLOGY_ALT |
| 148 | + --test_env=TPU_HOST_BOUNDS |
| 149 | + --test_env=TPU_WORKER_HOSTNAMES |
| 150 | + --test_env=CHIPS_PER_HOST_BOUNDS |
| 151 | + --test_env=HOST_BOUNDS |
| 152 | + --test_env=ALT=false |
| 153 | + --test_env=WRAP |
| 154 | + --test_env=VBAR_CONTROL_SERVICE_URL |
| 155 | + --repo_env=CC=$(which clang) |
| 156 | + --define=using_clang=true |
| 157 | + ) |
| 158 | + echo "BAZEL_FLAGS=${BAZEL_FLAGS[@]}" >> "${GITHUB_ENV}" |
157 | 159 |
|
158 | 160 | - name: EnzymeJaX build |
159 | 161 | working-directory: ${{ env.BASE_DIR }}/'Enzyme-JaX' |
|
0 commit comments