File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 24
24
echo "deb [trusted=yes] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list
25
25
echo "deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
26
26
apt-get update --yes --force-yes || true
27
- apt-get install wget clang-4.0 libc++-dev make git ca-certificates --yes --force-yes --no-install-suggests --no-install-recommends
28
- wget https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0-linux-x86_64.sh
29
- chmod +x cmake-3.31.0-linux-x86_64.sh
30
- ./cmake-3.31.0-linux-x86_64.sh --skip-license --prefix=/usr/local
27
+ apt-get install cmake clang-4.0 libc++-dev make git ca-certificates --yes --force-yes --no-install-suggests --no-install-recommends
31
28
env :
32
29
CC : clang-4.0
33
30
CXX : clang++-4.0
@@ -36,16 +33,13 @@ task:
36
33
echo "deb [trusted=yes] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list
37
34
echo "deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
38
35
apt-get update --yes --force-yes || true
39
- apt-get install wget gcc-4.9 g++-4.9 make git ca-certificates --yes --force-yes --no-install-suggests --no-install-recommends
40
- wget https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0-linux-x86_64.sh
41
- chmod +x cmake-3.31.0-linux-x86_64.sh
42
- ./cmake-3.31.0-linux-x86_64.sh --skip-license --prefix=/usr/local
36
+ apt-get install cmake gcc-4.9 g++-4.9 make git ca-certificates --yes --force-yes --no-install-suggests --no-install-recommends
43
37
env :
44
38
CC : gcc-4.9
45
39
CXX : g++-4.9
46
40
compile_script : |
47
41
mkdir build && cd build
48
- /usr/local/bin/ cmake -DCMAKE_BUILD_TYPE=Release -DHAVE_TESTS=1 -DENABLE_WERROR=0 -DHAVE_SSE4_1=1 -DREQUIRE_OPENMP=0 ..
42
+ cmake -DCMAKE_BUILD_TYPE=Release -DHAVE_TESTS=1 -DENABLE_WERROR=0 -DHAVE_SSE4_1=1 -DREQUIRE_OPENMP=0 ..
49
43
make -j $(nproc --all)
50
44
test_script : MMSEQS_NUM_THREADS=4 ./util/regression/run_regression.sh ./build/src/mmseqs SCRATCH SEARCH
51
45
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.15 FATAL_ERROR )
1
+ cmake_minimum_required (VERSION 3.0 FATAL_ERROR )
2
2
cmake_policy (SET CMP0060 OLD )
3
3
cmake_policy (SET CMP0074 NEW )
4
4
project (MMseqs CXX C )
Original file line number Diff line number Diff line change @@ -215,6 +215,16 @@ find_package(OpenMP QUIET)
215
215
if (OPENMP_FOUND )
216
216
message ("-- Found OpenMP" )
217
217
target_compile_definitions (mmseqs-framework PUBLIC -DOPENMP=1 )
218
+ # hack: remove pthread from openmp deps, it gets linked correctly by cuda later
219
+ if (FORCE_STATIC_DEPS AND ENABLE_CUDA )
220
+ set (FILTERED_LIBRARIES "" )
221
+ foreach (LIB ${OpenMP_CXX_LIBRARIES} )
222
+ if (NOT LIB MATCHES "pthread" )
223
+ list (APPEND FILTERED_LIBRARIES ${LIB} )
224
+ endif ()
225
+ endforeach ()
226
+ set (OpenMP_CXX_LIBRARIES ${FILTERED_LIBRARIES} )
227
+ endif ()
218
228
target_link_libraries (mmseqs-framework ${OpenMP_CXX_LIBRARIES} )
219
229
target_include_directories (mmseqs-framework PUBLIC ${OpenMP_CXX_INCLUDE_DIRS} )
220
230
append_target_property (mmseqs-framework COMPILE_FLAGS ${OpenMP_CXX_FLAGS} )
You can’t perform that action at this time.
0 commit comments