Skip to content

Commit c95a423

Browse files
authored
Use LLVM ThreadSanitizer instead of Google (#1993)
1 parent 6f5ced6 commit c95a423

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
tests/ctranslate2_test tests/data
7474
75-
build-and-test-cpp-x86_64-sanitizer:
75+
build-and-test-cpp-x86_64-address_sanitizer:
7676
runs-on: ubuntu-22.04
7777
env:
7878
CT2_VERBOSE: 1
@@ -87,15 +87,24 @@ jobs:
8787
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
8888
sudo apt-key add *.PUB
8989
sudo sh -c 'echo "deb https://apt.repos.intel.com/oneapi all main" > /etc/apt/sources.list.d/oneAPI.list'
90-
sudo apt-get update
90+
sudo apt update
9191
92-
- name: Configure with MKL
92+
- name: Install MKL
9393
env:
9494
CT2_USE_MKL: 1
9595
MKL_VERSION: 2023.0.0
9696
run: |
97-
sudo apt-get install -y intel-oneapi-mkl-devel-$MKL_VERSION
98-
cmake -DCMAKE_INSTALL_PREFIX=$PWD/install -DBUILD_TESTS=ON -DENABLE_ADDRESS_SANITIZER=ON -DCMAKE_BUILD_TYPE=Debug .
97+
sudo apt install -y intel-oneapi-mkl-devel-$MKL_VERSION
98+
99+
- name: Install Clang
100+
run: |
101+
sudo apt install -y clang
102+
103+
- name: Configure with MKL and Clang
104+
env:
105+
CT2_USE_MKL: 1
106+
run: |
107+
cmake -DCMAKE_INSTALL_PREFIX=$PWD/install -DBUILD_TESTS=ON -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DENABLE_ADDRESS_SANITIZER=ON -DCMAKE_BUILD_TYPE=Debug .
99108
100109
- name: Build
101110
run: |

0 commit comments

Comments
 (0)