Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-G Ninja -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE
env:
CC: gcc-14
Expand Down
27 changes: 10 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ jobs:
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-G Ninja -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
env:
CC: gcc-14
Expand Down Expand Up @@ -211,8 +210,7 @@ jobs:
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-G Ninja -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
env:
CC: clang-20
Expand Down Expand Up @@ -363,8 +361,7 @@ jobs:
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-G Ninja -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE -D ENABLE_ADDRESS_SANITIZER=ON -D ENABLE_UB_SANITIZER=ON
-D CMAKE_INSTALL_PREFIX=install
env:
Expand Down Expand Up @@ -399,7 +396,8 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip valgrind
sudo apt-get install --no-install-recommends -y ninja-build python3-pip valgrind \
openmpi-bin openmpi-common libopenmpi-dev
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 20 all
Expand Down Expand Up @@ -459,7 +457,8 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip valgrind
sudo apt-get install --no-install-recommends -y ninja-build python3-pip valgrind \
openmpi-bin openmpi-common libopenmpi-dev
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 20 all
Expand Down Expand Up @@ -518,8 +517,7 @@ jobs:
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-DCMAKE_C_FLAGS="-I$(brew --prefix)/opt/libomp/include"
-G Ninja -DCMAKE_C_FLAGS="-I$(brew --prefix)/opt/libomp/include"
-DCMAKE_CXX_FLAGS="-I$(brew --prefix)/opt/libomp/include"
-D CMAKE_BUILD_TYPE=RELEASE -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-DCMAKE_INSTALL_PREFIX=install
Expand Down Expand Up @@ -666,7 +664,6 @@ jobs:
run: >
cmake -S . -B build -G Ninja -D CMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
- name: Build project
Expand Down Expand Up @@ -816,7 +813,6 @@ jobs:
run: >
cmake -S . -B build -G Ninja -D CMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
env:
Expand Down Expand Up @@ -944,11 +940,8 @@ jobs:
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_VERBOSE_MAKEFILE=ON
-D USE_COVERAGE=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_VERBOSE_MAKEFILE=ON -D USE_COVERAGE=ON
- name: Build project
run: |
cmake --build build --parallel
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/static-analysis-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ jobs:
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-G Ninja
-D USE_SEQ=ON -D USE_MPI=ON
-D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-G Ninja -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
config_file: .clang-tidy
exclude: 3rdparty
split_workflow: true
Expand Down Expand Up @@ -62,10 +59,7 @@ jobs:
cmake_command: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D USE_SEQ=ON -D USE_MPI=ON
-D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-G Ninja -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
config_file: .clang-tidy
exclude: 3rdparty
Expand Down
29 changes: 16 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ cmake_minimum_required( VERSION 3.25 )
message( STATUS "Parallel Programming Course (PPC)" )
project(parallel_programming_course)

############################ Scoreboard #############################

message( STATUS "PPC step: Setup scoreboard generator" )
include(cmake/scoreboard.cmake)
add_subdirectory(scoreboard)

########################### Documentation ###########################

message( STATUS "PPC step: Setup documentation generation" )
include(cmake/sphinx.cmake)
add_subdirectory(docs)

if( USE_SCOREBOARD OR USE_DOCS )
return()
endif()

############################ Configures #############################

message( STATUS "PPC step: First configures" )
Expand All @@ -15,26 +31,13 @@ include(cmake/sanitizers.cmake)
message( STATUS "PPC step: Setup parallel programming technologies" )
include(cmake/mpi.cmake)
include(cmake/openmp.cmake)
include(cmake/threads.cmake)
include(cmake/onetbb.cmake)

######################### External projects #########################

message( STATUS "PPC step: Setup external projects" )
include(cmake/gtest.cmake)

########################### Documentation ###########################

message( STATUS "PPC step: Setup documentation generation" )
include(cmake/sphinx.cmake)
add_subdirectory(docs)

############################ Scoreboard #############################

message( STATUS "PPC step: Setup scoreboard generator" )
include(cmake/scoreboard.cmake)
add_subdirectory(scoreboard)

############################## Headers ##############################

message( STATUS "PPC step: Setup headers" )
Expand Down
2 changes: 2 additions & 0 deletions cmake/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ if( MSVC )
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${COMMON_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_FLAGS}" )
endif( MSVC )

find_package( Threads )
5 changes: 0 additions & 5 deletions cmake/gtest.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Build googletest components
if(NOT USE_SEQ AND NOT USE_MPI AND NOT USE_OMP AND NOT USE_TBB AND NOT USE_STL)
return()
endif()

include_directories(${CMAKE_SOURCE_DIR}/3rdparty/googletest/googletest/include)
include(ExternalProject)
ExternalProject_Add(ppc_googletest
Expand Down
15 changes: 6 additions & 9 deletions cmake/mpi.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
option(USE_MPI OFF)
if( USE_MPI )
find_package( MPI )
if( MPI_FOUND )
include_directories( ${MPI_INCLUDE_PATH} )
else( MPI_FOUND )
set( USE_MPI OFF )
endif( MPI_FOUND )
endif( USE_MPI )
find_package( MPI )
if( MPI_FOUND )
include_directories( ${MPI_INCLUDE_PATH} )
else( MPI_FOUND )
message(FATAL_ERROR "MPI NOT FOUND")
endif( MPI_FOUND )
61 changes: 29 additions & 32 deletions cmake/onetbb.cmake
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
option(USE_TBB OFF)
if( USE_TBB )
# Build Core OneTBB components
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/onetbb/include)
# Build Core OneTBB components
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/onetbb/include)

include(ExternalProject)
if(WIN32)
ExternalProject_Add(ppc_onetbb
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/onetbb"
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build"
INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install"
CONFIGURE_COMMAND "${CMAKE_COMMAND}" -S "${CMAKE_SOURCE_DIR}/3rdparty/onetbb/" -B "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build/" -DCMAKE_CXX_FLAGS="-w" -DCMAKE_C_FLAGS="-w"
-DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -D CMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -D CMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}
-G${CMAKE_GENERATOR} -DTBB_TEST=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
BUILD_COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --config ${CMAKE_BUILD_TYPE} --parallel
INSTALL_COMMAND "${CMAKE_COMMAND}" --install "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --prefix "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install"
TEST_COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install/bin" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
else()
ExternalProject_Add(ppc_onetbb
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/onetbb"
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build"
INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install"
CONFIGURE_COMMAND "${CMAKE_COMMAND}" -S "${CMAKE_SOURCE_DIR}/3rdparty/onetbb/" -B "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build/" -DCMAKE_CXX_FLAGS="-w" -DCMAKE_C_FLAGS="-w"
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -D CMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -D CMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}
-G${CMAKE_GENERATOR} -DTBB_TEST=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
BUILD_COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --config ${CMAKE_BUILD_TYPE} --parallel
INSTALL_COMMAND "${CMAKE_COMMAND}" --install "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --prefix "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install")
endif()
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install/"
DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif( USE_TBB )
include(ExternalProject)
if(WIN32)
ExternalProject_Add(ppc_onetbb
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/onetbb"
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build"
INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install"
CONFIGURE_COMMAND "${CMAKE_COMMAND}" -S "${CMAKE_SOURCE_DIR}/3rdparty/onetbb/" -B "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build/" -DCMAKE_CXX_FLAGS="-w" -DCMAKE_C_FLAGS="-w"
-DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -D CMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -D CMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}
-G${CMAKE_GENERATOR} -DTBB_TEST=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
BUILD_COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --config ${CMAKE_BUILD_TYPE} --parallel
INSTALL_COMMAND "${CMAKE_COMMAND}" --install "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --prefix "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install"
TEST_COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install/bin" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
else()
ExternalProject_Add(ppc_onetbb
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/onetbb"
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build"
INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install"
CONFIGURE_COMMAND "${CMAKE_COMMAND}" -S "${CMAKE_SOURCE_DIR}/3rdparty/onetbb/" -B "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build/" -DCMAKE_CXX_FLAGS="-w" -DCMAKE_C_FLAGS="-w"
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -D CMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -D CMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}
-G${CMAKE_GENERATOR} -DTBB_TEST=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
BUILD_COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --config ${CMAKE_BUILD_TYPE} --parallel
INSTALL_COMMAND "${CMAKE_COMMAND}" --install "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/build" --prefix "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install")
endif()
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/ppc_onetbb/install/"
DESTINATION "${CMAKE_INSTALL_PREFIX}")
25 changes: 9 additions & 16 deletions cmake/openmp.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
option(USE_OMP OFF)
if( USE_OMP )
find_package( OpenMP )
if( OpenMP_FOUND )
include_directories( ${OpenMP_C_INCLUDE_DIRS} ${OpenMP_CXX_INCLUDE_DIRS} )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
else( OpenMP_FOUND )
if (WIN32)
message(WARNING "OpenMP NOT FOUND")
else()
message(FATAL_ERROR "OpenMP NOT FOUND")
endif()
endif( OpenMP_FOUND )
endif( USE_OMP )
find_package( OpenMP )
if( OpenMP_FOUND )
include_directories( ${OpenMP_C_INCLUDE_DIRS} ${OpenMP_CXX_INCLUDE_DIRS} )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
else( OpenMP_FOUND )
message(FATAL_ERROR "OpenMP NOT FOUND")
endif( OpenMP_FOUND )
4 changes: 0 additions & 4 deletions cmake/threads.cmake

This file was deleted.

22 changes: 0 additions & 22 deletions docs/locale/en/LC_MESSAGES/user_guide/build.po
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,6 @@ msgstr ""
msgid "*Help on CMake keys:*"
msgstr ""

#: ../../user_guide/build.rst:15
msgid ""
"``-D USE_SEQ=ON`` enable ``Sequential`` labs (based on OpenMP's "
"CMakeLists.txt)."
msgstr ""

#: ../../user_guide/build.rst:16
msgid "``-D USE_MPI=ON`` enable ``MPI`` labs."
msgstr ""

#: ../../user_guide/build.rst:17
msgid "``-D USE_OMP=ON`` enable ``OpenMP`` labs."
msgstr ""

#: ../../user_guide/build.rst:18
msgid "``-D USE_TBB=ON`` enable ``TBB`` labs."
msgstr ""

#: ../../user_guide/build.rst:19
msgid "``-D USE_STL=ON`` enable ``std::thread`` labs."
msgstr ""

#: ../../user_guide/build.rst:20
msgid "``-D USE_FUNC_TESTS=ON`` enable functional tests."
msgstr ""
Expand Down
23 changes: 0 additions & 23 deletions docs/locale/ru/LC_MESSAGES/user_guide/build.po
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,6 @@ msgstr "**Конфигурация проекта**: ``Makefile``, ``.sln``, и
msgid "*Help on CMake keys:*"
msgstr "*Важные CMake ключи для конфигурации проекта:*"

#: ../../user_guide/build.rst:15
msgid ""
"``-D USE_SEQ=ON`` enable ``Sequential`` labs (based on OpenMP's "
"CMakeLists.txt)."
msgstr ""
"``-D USE_SEQ=ON`` включает ``последовательные`` лабораторные работы."

#: ../../user_guide/build.rst:16
msgid "``-D USE_MPI=ON`` enable ``MPI`` labs."
msgstr "``-D USE_MPI=ON`` включает ``MPI`` лабораторные работы."

#: ../../user_guide/build.rst:17
msgid "``-D USE_OMP=ON`` enable ``OpenMP`` labs."
msgstr "``-D USE_OMP=ON`` включает ``OpenMP`` лабораторные работы."

#: ../../user_guide/build.rst:18
msgid "``-D USE_TBB=ON`` enable ``TBB`` labs."
msgstr "``-D USE_TBB=ON`` включает ``TBB`` лабораторные работы."

#: ../../user_guide/build.rst:19
msgid "``-D USE_STL=ON`` enable ``std::thread`` labs."
msgstr "``-D USE_STL=ON`` включает ``std::thread`` лабораторные работы."

#: ../../user_guide/build.rst:20
msgid "``-D USE_FUNC_TESTS=ON`` enable functional tests."
msgstr "``-D USE_FUNC_TESTS=ON`` включает функциональные тесты."
Expand Down
8 changes: 2 additions & 6 deletions docs/user_guide/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ Navigate to a source code folder.
.. code-block:: bash

mkdir build && cd build
cmake -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON -D CMAKE_BUILD_TYPE=Release ..
cmake -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON -D CMAKE_BUILD_TYPE=Release ..

*Help on CMake keys:*

- ``-D USE_SEQ=ON`` enable ``Sequential`` labs (based on OpenMP's CMakeLists.txt).
- ``-D USE_MPI=ON`` enable ``MPI`` labs.
- ``-D USE_OMP=ON`` enable ``OpenMP`` labs.
- ``-D USE_TBB=ON`` enable ``TBB`` labs.
- ``-D USE_STL=ON`` enable ``std::thread`` labs.

- ``-D USE_FUNC_TESTS=ON`` enable functional tests.
- ``-D USE_PERF_TESTS=ON`` enable performance tests.
- ``-D CMAKE_BUILD_TYPE=Release`` required parameter for stable work of repo.
Expand Down
4 changes: 0 additions & 4 deletions modules/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if(NOT USE_SEQ AND NOT USE_MPI AND NOT USE_OMP AND NOT USE_TBB AND NOT USE_STL)
return()
endif()

message(STATUS "Modules")

SUBDIRLIST(subdirs ${CMAKE_CURRENT_SOURCE_DIR})
Expand Down
Loading
Loading