|
8 | 8 | - master |
9 | 9 | jobs: |
10 | 10 | build_validation: |
11 | | - runs-on: [self-hosted, linux, x64] |
| 11 | + runs-on: [self-hosted, linux, x64, 4060Ti] |
12 | 12 | if: github.repository_owner == 'deepmodeling' |
13 | | - container: |
14 | | - image: ubuntu:20.04 |
15 | | - options: --shm-size=5g # shared memory size = 5GB |
16 | 13 | steps: |
17 | 14 | - name: Checkout |
18 | 15 | 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 |
42 | 16 |
|
43 | | - |
44 | 17 | - name: build and validation with CPU inference |
45 | 18 | env: |
46 | 19 | OMPI_ALLOW_RUN_AS_ROOT: 1 |
47 | 20 | OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 |
48 | 21 | OMPI_MCA_btl_vader_single_copy_mechanism: none |
49 | 22 | 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 |
53 | 24 | && 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 |
55 | 26 | && source ~/miniconda3/etc/profile.d/conda.sh && conda activate libcantera && source /opt/openfoam7/etc/bashrc |
56 | 27 | && . configure.sh --use_pytorch&& source ./bashrc && . install.sh |
57 | 28 | && cd test && ./Allrun && conda deactivate " |
|
0 commit comments