File tree Expand file tree Collapse file tree
ML-Frameworks/pytorch-aarch64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 - name : Run smoke tests
6969 run : docker run --rm toolsolutions-pytorch:latest ./test.sh
7070
71+ - name : Run unit tests
72+ run : docker run --rm toolsolutions-pytorch:latest bash ./run_unit_tests.sh
73+
7174 # This job adds a check named "Precommit-status" that represents overall
7275 # workflow status and can be used in branch rulesets
7376 status :
Original file line number Diff line number Diff line change 11ComputeLibrary /
22pytorch /
3+ ! pytorch /test
4+ ! pytorch /test /**
5+ ! pytorch /.ci /docker /requirements-ci.txt
36* .log
47. * _build_container_id
Original file line number Diff line number Diff line change @@ -103,8 +103,11 @@ RUN pip install "$(basename "$TORCH_WHEEL")" --no-deps \
103103RUN pip install "$(basename " $TORCH_AO_WHEEL")" --no-deps \
104104 && rm "$(basename " $TORCH_AO_WHEEL")"
105105
106- # Setup Examples
106+ # Setup Examples and tests
107107COPY examples/ /home/$DOCKER_USER/
108+ COPY pytorch/test /home/$DOCKER_USER/pytorch/test
109+
110+ RUN pip install -r requirements-unit.txt
108111
109112# Llm examples depends on torchchat
110113RUN sudo mkdir -p /home/ubuntu/gen_ai_utils/ && \
Original file line number Diff line number Diff line change 1+ expecttest==0.3.0
Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # *******************************************************************************
4+ # Copyright 2025 Arm Limited and affiliates.
5+ # SPDX-License-Identifier: Apache-2.0
6+ #
7+ # Licensed under the Apache License, Version 2.0 (the "License");
8+ # you may not use this file except in compliance with the License.
9+ # You may obtain a copy of the License at
10+ #
11+ # http://www.apache.org/licenses/LICENSE-2.0
12+ #
13+ # Unless required by applicable law or agreed to in writing, software
14+ # distributed under the License is distributed on an "AS IS" BASIS,
15+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+ # See the License for the specific language governing permissions and
17+ # limitations under the License.
18+ # *******************************************************************************
19+
20+ LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libtcmalloc.so.4 DNNL_DEFAULT_FPMATH_MODE=BF16 /
21+ python pytorch/test/test_mkldnn.py
22+ LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libtcmalloc.so.4 DNNL_DEFAULT_FPMATH_MODE=BF16 /
23+ python pytorch/test/test_transformers.py
Original file line number Diff line number Diff line change 3131
3232# Check an example with some of the flags from REAMDE.md > "General optimization
3333# guidelines" There is no verbatim example for this
34- LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libtcmalloc.so.4 IDEEP_CACHE_MATMUL_REORDERS=1 \
35- LRU_CACHE_CAPACITY=256 DNNL_DEFAULT_FPMATH_MODE=BF16 ${examples[0]}
34+ LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libtcmalloc.so.4 DNNL_DEFAULT_FPMATH_MODE=BF16 ${examples[0]}
You can’t perform that action at this time.
0 commit comments