Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 5249dc3

Browse files
committed
CI
1 parent fe43b43 commit 5249dc3

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on: [push, pull_request]
2+
3+
defaults:
4+
run:
5+
shell: bash
6+
7+
jobs:
8+
build_and_test:
9+
name: building and testing ddptensor
10+
container:
11+
image: amr-registry-pre.caas.intel.com/tpi/ddpt
12+
options: --device=/dev/dri --shm-size=3000M
13+
strategy:
14+
fail-fast: false
15+
steps:
16+
- name: Setup
17+
run: conda activate ddpt
18+
- name: Checkout ddptensor
19+
uses: actions/checkout@v2
20+
- name: Build dpptensor
21+
run: |
22+
g++ -v
23+
CMAKE_BUILD_PARALLEL_LEVEL=8 python setup.py develop
24+
- name: Run tests
25+
run: |
26+
pytest test
27+
DDPT_CW=0 pytest test
28+
DDPT_CW=1 pytest test
29+
DDPT_MPI_SPAWN=1 PYTHON_EXE=`which python` pytest test
30+
DDPT_MPI_SPAWN=2 PYTHON_EXE=`which python` pytest test
31+
DDPT_MPI_SPAWN=3 PYTHON_EXE=`which python` pytest test
32+
DDPT_CW=1 mpirun -n 1 python -m pytest test
33+
DDPT_CW=1 mpirun -n 2 python -m pytest test
34+
DDPT_CW=1 mpirun -n 3 python -m pytest test
35+
DDPT_CW=1 mpirun -n 4 python -m pytest test
36+
DDPT_CW=0 mpirun -n 1 python -m pytest test
37+
DDPT_CW=0 mpirun -n 2 python -m pytest test
38+
DDPT_CW=0 mpirun -n 3 python -m pytest test
39+
DDPT_CW=0 mpirun -n 4 python -m pytest test

docker/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
# are last
33
FROM ubuntu:20.04
44

5-
# Proxies for working inside firewall
6-
ENV no_proxy=.intel.com
7-
ENV https_proxy=http://proxy-chain.intel.com:912
8-
ENV http_proxy=http://proxy-chain.intel.com:911
9-
ENV ftp_proxy=http://proxy-chain.intel.com:911
10-
115
RUN export DEBIAN_FRONTEND=noninteractive \
126
&& apt-get update \
137
&& apt-get install -y --no-install-recommends g++ gcc wget \

docker/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
IMAGE = amr-registry-pre.caas.intel.com/tpi/ddpt:latest
2+
3+
all:
4+
docker build --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --tag ${IMAGE} .
5+
docker push ${IMAGE}

0 commit comments

Comments
 (0)