@@ -29,21 +29,17 @@ jobs:
29
29
- run : python -m pip install uv
30
30
- name : Install Python dependencies
31
31
run : |
32
- source/install/uv_with_retry.sh pip install --system tensorflow-cpu
32
+ source/install/uv_with_retry.sh pip install --system tensorflow-cpu~=2.18.0 jax==0.5.0
33
33
export TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
34
34
source/install/uv_with_retry.sh pip install --system -e .[cpu,test,lmp,jax] mpi4py
35
+ source/install/uv_with_retry.sh pip install --system 'torch==2.7' --index-url https://download.pytorch.org/whl/cpu
35
36
- name : Convert models
36
37
run : source/tests/infer/convert-models.sh
37
- - name : Download libtorch
38
- run : |
39
- wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip -O libtorch.zip
40
- unzip libtorch.zip
41
38
# https://github.com/actions/runner-images/issues/9491
42
39
- name : Fix kernel mmap rnd bits
43
40
run : sudo sysctl vm.mmap_rnd_bits=28
44
41
if : ${{ matrix.check_memleak }}
45
42
- run : |
46
- export CMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/libtorch
47
43
source/install/test_cc_local.sh
48
44
env:
49
45
OMP_NUM_THREADS: 1
@@ -52,23 +48,32 @@ jobs:
52
48
LMP_CXX11_ABI_0: 1
53
49
CMAKE_GENERATOR: Ninja
54
50
CXXFLAGS: ${{ matrix.check_memleak && '-fsanitize=leak' || '' }}
51
+ LSAN_OPTIONS: suppressions=${{ github.workspace }}/.github/workflows/suppr.txt
55
52
# test lammps
56
- - run : pytest --cov=deepmd source/lmp/tests
53
+ - run : |
54
+ cp ${{ github.workspace }}/source/build_tests/paddle_inference_install_dir/paddle/lib/*.so ${{ github.workspace }}/dp_test/lib/
55
+ cp ${{ github.workspace }}/source/build_tests/paddle_inference_install_dir/third_party/install/onednn/lib/* ${{ github.workspace }}/dp_test/lib/
56
+ cp ${{ github.workspace }}/source/build_tests/paddle_inference_install_dir/third_party/install/mklml/lib/* ${{ github.workspace }}/dp_test/lib/
57
+ pytest --cov=deepmd source/lmp/tests
57
58
env:
58
59
OMP_NUM_THREADS: 1
59
60
TF_INTRA_OP_PARALLELISM_THREADS: 1
60
61
TF_INTER_OP_PARALLELISM_THREADS: 1
61
62
LAMMPS_PLUGIN_PATH: ${{ github.workspace }}/dp_test/lib/deepmd_lmp
62
- LD_LIBRARY_PATH : ${{ github.workspace }}/dp_test/lib:${{ github.workspace }}/libtorch/lib
63
+ LD_LIBRARY_PATH: ${{ github.workspace }}/dp_test/lib
63
64
if: ${{ !matrix.check_memleak }}
64
65
# test ipi
65
- - run : pytest --cov=deepmd source/ipi/tests
66
+ - run : |
67
+ export PATH=${{ github.workspace }}/dp_test/bin:$PATH
68
+ cp ${{ github.workspace }}/source/build_tests/paddle_inference_install_dir/paddle/lib/*.so ${{ github.workspace }}/dp_test/lib/
69
+ cp ${{ github.workspace }}/source/build_tests/paddle_inference_install_dir/third_party/install/onednn/lib/* ${{ github.workspace }}/dp_test/lib/
70
+ cp ${{ github.workspace }}/source/build_tests/paddle_inference_install_dir/third_party/install/mklml/lib/* ${{ github.workspace }}/dp_test/lib/
71
+ pytest --cov=deepmd source/ipi/tests
66
72
env:
67
73
OMP_NUM_THREADS: 1
68
74
TF_INTRA_OP_PARALLELISM_THREADS: 1
69
75
TF_INTER_OP_PARALLELISM_THREADS: 1
70
- PATH : ${{ github.workspace }}/dp_test/bin:$PATH
71
- LD_LIBRARY_PATH : ${{ github.workspace }}/dp_test/lib:${{ github.workspace }}/libtorch/lib
76
+ LD_LIBRARY_PATH: ${{ github.workspace }}/dp_test/lib
72
77
if: ${{ !matrix.check_memleak }}
73
78
- uses : codecov/codecov-action@v5
74
79
env :
0 commit comments