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 2424 echo "deb [trusted=yes] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list
2525 echo "deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
2626 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
3128 env :
3229 CC : clang-4.0
3330 CXX : clang++-4.0
@@ -36,16 +33,13 @@ task:
3633 echo "deb [trusted=yes] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list
3734 echo "deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
3835 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
4337 env :
4438 CC : gcc-4.9
4539 CXX : g++-4.9
4640 compile_script : |
4741 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 ..
4943 make -j $(nproc --all)
5044 test_script : MMSEQS_NUM_THREADS=4 ./util/regression/run_regression.sh ./build/src/mmseqs SCRATCH SEARCH
5145
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)
22cmake_policy (SET CMP0060 OLD)
33cmake_policy (SET CMP0074 NEW)
44project (MMseqs CXX C)
Original file line number Diff line number Diff line change @@ -215,6 +215,16 @@ find_package(OpenMP QUIET)
215215if (OPENMP_FOUND)
216216 message ("-- Found OpenMP" )
217217 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 ()
218228 target_link_libraries (mmseqs-framework ${OpenMP_CXX_LIBRARIES} )
219229 target_include_directories (mmseqs-framework PUBLIC ${OpenMP_CXX_INCLUDE_DIRS} )
220230 append_target_property(mmseqs-framework COMPILE_FLAGS ${OpenMP_CXX_FLAGS} )
You can’t perform that action at this time.
0 commit comments