Skip to content

Commit a4076f8

Browse files
committed
CI: Change actions to self-hosted runner.
- The action-runner is running in a docker container hosted on a Win11 computer. It has 12xCPUs and 1x4060Ti GPU card. - To reduce the ci time, all the prerequisites are installed in the container. This actions script only performs the compiling and testing procedures.
1 parent 0ad2411 commit a4076f8

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

.github/workflows/CPU_inferencce_validation.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,21 @@ on:
88
- master
99
jobs:
1010
build_validation:
11-
runs-on: [self-hosted, linux, x64]
11+
runs-on: [self-hosted, linux, x64, 4060Ti]
1212
if: github.repository_owner == 'deepmodeling'
13-
container:
14-
image: ubuntu:20.04
15-
options: --shm-size=5g # shared memory size = 5GB
1613
steps:
1714
- name: Checkout
1815
uses: actions/checkout@v3
19-
- name: install dependencies
20-
env:
21-
DEBIAN_FRONTEND: noninteractive
22-
run: |
23-
apt-get update
24-
apt-get install -y sudo wget unzip git software-properties-common make cmake g++ mpich openmpi-bin libopenmpi-dev libscalapack-mpi-dev vim git-core
25-
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
26-
sudo add-apt-repository http://dl.openfoam.org/ubuntu
27-
sudo apt-get update
28-
export DEBIAN_FRONTEND=noninteractive
29-
apt-get -y install openfoam7
30-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
31-
bash Miniconda3-latest-Linux-x86_64.sh -b
32-
. ~/miniconda3/etc/profile.d/conda.sh
33-
conda create -n libcantera python=3.8
34-
conda activate libcantera
35-
conda install -c cantera libcantera-devel=2.6
36-
conda install -c cantera cantera
37-
conda install pytorch pybind11
38-
conda install pkg-config
39-
conda install --channel https://conda.anaconda.org/zhaofeng-shu33 easydict
40-
git clone https://github.com/deepmodeling/deepflame-dev.git
41-
cd deepflame-dev
4216

43-
4417
- name: build and validation with CPU inference
4518
env:
4619
OMPI_ALLOW_RUN_AS_ROOT: 1
4720
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
4821
OMPI_MCA_btl_vader_single_copy_mechanism: none
4922
run:
50-
/bin/bash -c " echo $PWD && ls $PWD
51-
&& wget --content-disposition https://aisquare.oss-us-east-1.aliyuncs.com/data/datasets/14b50df5-dbe9-4f1c-bf58-032b8bc40a20
52-
&& unzip flare_CH4_SandiaD_4D.zip
23+
/bin/bash -c " echo $PWD
5324
&& ls $PWD
54-
&& cp -r flare_CH4_SandiaD_4D.tbl examples/dfLowMachFoam/fgm/twoD_SandiaD_flareFGM
25+
&& cp -r ../data/flare_CH4_SandiaD_4D.tbl examples/dfLowMachFoam/fgm/twoD_SandiaD_flareFGM
5526
&& source ~/miniconda3/etc/profile.d/conda.sh && conda activate libcantera && source /opt/openfoam7/etc/bashrc
5627
&& . configure.sh --use_pytorch&& source ./bashrc && . install.sh
5728
&& cd test && ./Allrun && conda deactivate "

0 commit comments

Comments
 (0)