From c3a2b276a0cf6fb6013fc5e230036f5e7f0e135f Mon Sep 17 00:00:00 2001 From: HydrogenSulfate <490868991@qq.com> Date: Tue, 7 Jan 2025 20:35:30 +0800 Subject: [PATCH 1/3] Update .github/workflows/test_cc.yml Co-authored-by: Jinzhe Zeng Signed-off-by: HydrogenSulfate <490868991@qq.com> --- .github/workflows/test_cc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 245c462a9a..ce83cf95e3 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -51,7 +51,7 @@ jobs: TF_INTER_OP_PARALLELISM_THREADS: 1 LMP_CXX11_ABI_0: 1 CMAKE_GENERATOR: Ninja - CXXFLAGS: ${{ matrix.check_memleak && '-fsanitize=leak -fsanitize-ignorelist=${{ github.workspace }}/.github/workflows/ignorelist.txt' || '' }} + CXXFLAGS: ${{ matrix.check_memleak && ('-fsanitize=leak -fsanitize-ignorelist=' + github.workspace + '/.github/workflows/ignorelist.txt') || '' }} # test lammps - run: pytest --cov=deepmd source/lmp/tests env: From 0045f7714512c33def8cfa82ad085670123734d3 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 7 Jan 2025 20:50:27 +0800 Subject: [PATCH 2/3] try format Signed-off-by: Jinzhe Zeng --- .github/workflows/test_cc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index ce83cf95e3..b1c82b36e1 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -51,7 +51,7 @@ jobs: TF_INTER_OP_PARALLELISM_THREADS: 1 LMP_CXX11_ABI_0: 1 CMAKE_GENERATOR: Ninja - CXXFLAGS: ${{ matrix.check_memleak && ('-fsanitize=leak -fsanitize-ignorelist=' + github.workspace + '/.github/workflows/ignorelist.txt') || '' }} + CXXFLAGS: ${{ matrix.check_memleak && format('-fsanitize=leak -fsanitize-ignorelist={0}/.github/workflows/ignorelist.txt', github.workspace) || '' }} # test lammps - run: pytest --cov=deepmd source/lmp/tests env: From d598c3e9717630f2fd7e59cdb2fefc5f3c9bb79c Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 7 Jan 2025 21:37:29 +0800 Subject: [PATCH 3/3] use the clang compiler --- .github/workflows/test_cc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index b1c82b36e1..8fc3275e08 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -51,6 +51,8 @@ jobs: TF_INTER_OP_PARALLELISM_THREADS: 1 LMP_CXX11_ABI_0: 1 CMAKE_GENERATOR: Ninja + CC: clang + CXX: clang++ CXXFLAGS: ${{ matrix.check_memleak && format('-fsanitize=leak -fsanitize-ignorelist={0}/.github/workflows/ignorelist.txt', github.workspace) || '' }} # test lammps - run: pytest --cov=deepmd source/lmp/tests