Skip to content

Commit 97c3f2e

Browse files
Merge branch 'master' of github.com:Algebraic-Programming/HiCR
2 parents a8944bf + 6d4807d commit 97c3f2e

File tree

97 files changed

+5803
-22383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+5803
-22383
lines changed

.build-tools/containers/buildenv-ascend/Dockerfile renamed to .build-tools/containers/buildenv-acl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ RUN cd $HOME/cann-toolkit \
3737
&& sudo rm -rf /usr/local/Ascend/ascend-toolkit/${CANN_VERSION}/opp/built-in/data \
3838
&& rm -rf cann-toolkit
3939

40+
4041
ENV ESCAPED_LD_LIBRARY_PATH='$LD_LIBRARY_PATH'
4142
RUN echo "LD_LIBRARY_PATH=/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:$ESCAPED_LD_LIBRARY_PATH" >> $HOME/.hicr-env.sh
4243
RUN echo "source /usr/local/Ascend/ascend-toolkit/set_env.sh" >> $HOME/.hicr-env.sh
4344

44-
4545
WORKDIR $HOME

.build-tools/containers/buildenv-ascend/run.sh renamed to .build-tools/containers/buildenv-acl/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ fi
88
folder=${1}
99
arch=${2}
1010

11-
docker run --device=/dev/davinci0 --device=/dev/davinci1 --device=/dev/davinci2 --device=/dev/davinci3 --device=/dev/davinci4 --device=/dev/davinci5 --device=/dev/davinci6 --device=/dev/davinci7 --device=/dev/davinci_manager --device=/dev/hisi_hdc --device=/dev/devmm_svm -v /usr/local/dcmi:/usr/local/dcmi -v /usr/local/Ascend/driver:/usr/local/Ascend/driver -v /usr/local/Ascend/firmware:/usr/local/Ascend/firmware -v /usr/local/Ascend/toolbox:/usr/local/Ascend/toolbox -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi --name hicr-ascend -t -d registry.gitlab.huaweirc.ch/zrc-von-neumann-lab/runtime-system-innovations/hicr/${folder}-${arch}:latest bash
11+
docker run --device=/dev/davinci0 --device=/dev/davinci1 --device=/dev/davinci2 --device=/dev/davinci3 --device=/dev/davinci4 --device=/dev/davinci5 --device=/dev/davinci6 --device=/dev/davinci7 --device=/dev/davinci_manager --device=/dev/hisi_hdc --device=/dev/devmm_svm -v /usr/local/dcmi:/usr/local/dcmi -v /usr/local/Ascend/driver:/usr/local/Ascend/driver -v /usr/local/Ascend/firmware:/usr/local/Ascend/firmware -v /usr/local/Ascend/toolbox:/usr/local/Ascend/toolbox -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi --name hicr-acl -t -d registry.gitlab.huaweirc.ch/zrc-von-neumann-lab/runtime-system-innovations/hicr/${folder}-${arch}:latest bash

.build-tools/containers/buildenv/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ RUN git clone -b noc_extension --single-branch --depth 1 https://github.com/Alge
100100
&& sudo make install || true \
101101
&& sudo rm -rf $HOME/lpf
102102

103-
104103
RUN git clone -b 1.11.0 --single-branch --depth 1 https://github.com/bsc-pm/ovni.git $HOME/ovni \
105104
&& cd $HOME/ovni \
106105
&& mkdir build \
@@ -184,7 +183,6 @@ RUN echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig' >> $
184183
RUN echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/share/pkgconfig' >> $HOME/.hicr-env.sh
185184
RUN echo 'source ${HOME}/.venv/bin/activate' >> $HOME/.hicr-env.sh
186185

187-
188186
RUN echo 'source $HOME/.hicr-env.sh' >> $HOME/.bashrc
189187
USER $ROOT_USER
190188
RUN chown -R $USER $HOME

.build-tools/linter/check-linter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88
task="${1}";
99
rootDir=`realpath "${2}"`
1010
fileDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
11-
fileList=`find ${rootDir} -name "*.hpp" -not -path "${rootDir}/extern/*" -not -path "${rootDir}/tests/*" -not -path "${rootDir}/examples/*" -not -path "*/channelsImpl.hpp" -not -path "*/ascend/*" -not -path "*/exceptions.hpp"`
11+
fileList=`find ${rootDir} -name "*.hpp" -not -path "${rootDir}/extern/*" -not -path "${rootDir}/tests/*" -not -path "${rootDir}/examples/*" -not -path "*/channelsImpl.hpp" -not -path "*/acl/*" -not -path "*/exceptions.hpp"`
1212

1313
fixFlag=""
1414
if [[ ${task} == "fix" ]]; then fixFlag="--fix-errors --fix-notes"; fi

.github/workflows/master-build-ascend-workflow.yml renamed to .github/workflows/master-build-acl-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Merge into master - Build Ascend Workflow
1+
name: Merge into master - Build acl Workflow
22

33
# if statements modified to avoid: https://stackoverflow.com/questions/69354003/github-action-job-fire-when-previous-job-skipped
44

@@ -17,7 +17,7 @@ permissions:
1717

1818
env:
1919
REGISTRY: ghcr.io
20-
DOCKERIMAGE: ghcr.io/algebraic-programming/hicr/buildenv-ascend
20+
DOCKERIMAGE: ghcr.io/algebraic-programming/hicr/buildenv-acl
2121

2222
defaults:
2323
run:
@@ -45,7 +45,7 @@ jobs:
4545
MODIFIED_FILES_PATH: ${{ runner.temp }}/diff.txt
4646
run: |
4747
cat $MODIFIED_FILES_PATH
48-
if cat $MODIFIED_FILES_PATH | grep -q 'buildenv-ascend/Dockerfile' ; then
48+
if cat $MODIFIED_FILES_PATH | grep -q 'buildenv-acl/Dockerfile' ; then
4949
echo "Dockerfile was modified"
5050
echo "dockerfile-modified=true" >> $GITHUB_OUTPUT
5151
else
@@ -90,7 +90,7 @@ jobs:
9090
- name: Build and push docker image
9191
uses: docker/build-push-action@v6
9292
with:
93-
context: "{{defaultContext}}:.build-tools/containers/buildenv-ascend"
93+
context: "{{defaultContext}}:.build-tools/containers/buildenv-acl"
9494
push: true
9595
tags: ${{ steps.dockermeta.outputs.tags }}
9696
labels: ${{ steps.dockermeta.outputs.labels }}

.github/workflows/master-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/checkout@v4
4040

4141
- name: Setup
42-
run: source /home/hicr/.bashrc && meson setup build -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
42+
run: source /home/hicr/.bashrc && meson setup build -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl,acl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
4343

4444
- name: Compile
4545
run: source /home/hicr/.bashrc && meson compile -C build

.github/workflows/master.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
needs: [ build-docker-amd64, build-docker-arm64 ]
2929
if: |
3030
always() &&
31-
(contains(needs.build-docker-amd64.result, 'success') || contains(needs.build-docker-amd64.result, 'skipped')) &&
32-
(contains(needs.build-docker-arm64.result, 'success') || contains(needs.build-docker-arm64.result, 'skipped'))
31+
contains(needs.build-docker-amd64.result, 'success') &&
32+
contains(needs.build-docker-arm64.result, 'success')
3333
steps:
3434
- name: Set up Docker Buildx
3535
uses: docker/setup-buildx-action@v3
@@ -65,33 +65,33 @@ jobs:
6565
os: ubuntu-24.04
6666
arch: amd64
6767

68-
build-ascend-docker-arm64:
68+
build-acl-docker-arm64:
6969
needs: [ push-buildenv-manifest ]
7070
if: |
7171
always() &&
7272
(contains(needs.push-buildenv-manifest.result, 'success') || contains(needs.push-buildenv-manifest.result, 'skipped'))
73-
uses: Algebraic-Programming/HiCR/.github/workflows/master-build-ascend-workflow.yml@master
73+
uses: Algebraic-Programming/HiCR/.github/workflows/master-build-acl-workflow.yml@master
7474
with:
7575
os: ubuntu-24.04-arm
7676
arch: arm64
7777

78-
build-ascend-docker-amd64:
78+
build-acl-docker-amd64:
7979
needs: [ push-buildenv-manifest ]
8080
if: |
8181
always() &&
8282
(contains(needs.push-buildenv-manifest.result, 'success') || contains(needs.push-buildenv-manifest.result, 'skipped'))
83-
uses: Algebraic-Programming/HiCR/.github/workflows/master-build-ascend-workflow.yml@master
83+
uses: Algebraic-Programming/HiCR/.github/workflows/master-build-acl-workflow.yml@master
8484
with:
8585
os: ubuntu-24.04
8686
arch: amd64
8787

88-
push-buildenv-ascend-manifest:
88+
push-buildenv-acl-manifest:
8989
runs-on: ubuntu-latest
90-
needs: [ build-ascend-docker-amd64, build-ascend-docker-arm64 ]
90+
needs: [ build-acl-docker-amd64, build-acl-docker-arm64 ]
9191
if: |
9292
always() &&
93-
(contains(needs.build-ascend-docker-amd64.result, 'success') || contains(needs.build-ascend-docker-amd64.result, 'skipped')) &&
94-
(contains(needs.build-ascend-docker-arm64.result, 'success') || contains(needs.build-ascend-docker-arm64.result, 'skipped'))
93+
contains(needs.build-acl-docker-amd64.result, 'success') &&
94+
contains(needs.build-acl-docker-arm64.result, 'success')
9595
steps:
9696
- name: Set up Docker Buildx
9797
uses: docker/setup-buildx-action@v3
@@ -105,5 +105,5 @@ jobs:
105105

106106
- name: Create and push manifest images
107107
run:
108-
docker buildx imagetools create --tag ${{ env.DOCKERIMAGE }}-ascend:latest ${{ env.DOCKERIMAGE }}-ascend:amd64-latest ${{ env.DOCKERIMAGE }}-ascend:arm64-latest
108+
docker buildx imagetools create --tag ${{ env.DOCKERIMAGE }}-acl:latest ${{ env.DOCKERIMAGE }}-acl:amd64-latest ${{ env.DOCKERIMAGE }}-acl:arm64-latest
109109

.github/workflows/pr-development-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ jobs:
229229
docker run --name hicr --shm-size=1024M --privileged -v $PWD:/home/hicr/hicr -w /home/hicr/hicr -td ${{ env.DOCKERIMAGE }}:${{ inputs.arch }}-latest bash
230230
231231
- name: Setup
232-
run: docker exec -u hicr hicr bash -c "meson setup build -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true"
232+
run: docker exec -u hicr hicr bash -c "meson setup build -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl,acl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true"
233233

234234
- name: Compile
235235
run: docker exec -u hicr hicr bash -c "meson compile -C build"
@@ -269,7 +269,7 @@ jobs:
269269
uses: actions/checkout@v4
270270

271271
- name: Setup
272-
run: source /home/hicr/.bashrc && meson setup build -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
272+
run: source /home/hicr/.bashrc && meson setup build -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl,acl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
273273

274274
- name: Compile
275275
run: source /home/hicr/.bashrc && meson compile -C build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ atlas_*
1010
**/*.bin
1111
**/*ubyte*
1212
**/.venv
13-
.cache
13+
.cache
14+
examples/neuralNetwork/proto/onnx.proto3.pb.*

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ build:
3232
only:
3333
- master
3434

35-
build-ascend:
36-
image: ghcr.io/algebraic-programming/hicr/buildenv-ascend:latest
35+
build-acl:
36+
image: ghcr.io/algebraic-programming/hicr/buildenv-acl:latest
3737
tags:
3838
- docker
39-
- ascend
39+
- acl
4040
script:
4141
- source /home/hicr/.hicr-env.sh
4242
- echo "$PATH"
4343
- echo "Building..."
4444
- mkdir build
45-
- meson setup build -Dbackends=hwloc,pthreads,ascend,boost -Dfrontends= -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
45+
- meson setup build -Dbackends=hwloc,pthreads,acl,boost -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
4646
- meson compile -C build
4747
- echo "Running tests..."
4848
- meson test -C build

0 commit comments

Comments
 (0)