Skip to content

Commit f00f8e5

Browse files
committed
check lld
1 parent 380cfa7 commit f00f8e5

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/main.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ jobs:
365365
run: |
366366
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
367367
sudo apt-get update
368-
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip
368+
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip lld
369369
wget https://apt.llvm.org/llvm.sh
370370
chmod u+x llvm.sh
371371
sudo ./llvm.sh 19 all
@@ -382,7 +382,10 @@ jobs:
382382
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
383383
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
384384
-D CMAKE_BUILD_TYPE=RELEASE -D ENABLE_ADDRESS_SANITIZER=ON -D ENABLE_UB_SANITIZER=ON
385-
-DCMAKE_INSTALL_PREFIX=install
385+
-D CMAKE_INSTALL_PREFIX=install
386+
-D CMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld"
387+
-D CMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld"
388+
-D CMAKE_MODULE_LINKER_FLAGS="-fuse-ld=lld"
386389
env:
387390
CC: clang-19
388391
CXX: clang++-19

tasks/all/runner.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <gtest/gtest.h>
22
#include <mpi.h>
3-
#include <tbb/global_control.h>
43

54
#include <cstdio>
65
#include <cstdlib>
@@ -17,9 +16,7 @@ class UnreadMessagesDetector : public ::testing::EmptyTestEventListener {
1716

1817
void OnTestEnd(const ::testing::TestInfo& test_info) override {
1918
int rank = -1;
20-
int size = -1;
2119
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
22-
MPI_Comm_size(MPI_COMM_WORLD, &size);
2320

2421
MPI_Barrier(MPI_COMM_WORLD);
2522

tasks/mpi/runner.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class UnreadMessagesDetector : public ::testing::EmptyTestEventListener {
1313

1414
void OnTestEnd(const ::testing::TestInfo& test_info) override {
1515
int rank = -1;
16-
int size = -1;
1716
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
18-
MPI_Comm_size(MPI_COMM_WORLD, &size);
1917

2018
MPI_Barrier(MPI_COMM_WORLD);
2119

0 commit comments

Comments
 (0)