-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (67 loc) · 1.41 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required(VERSION 3.8)
project(parallel_lab)
add_subdirectory(lab1-naive)
add_subdirectory(lab2-pthread)
add_subdirectory(lab3-openmp)
add_subdirectory(lab4-mpi)
add_subdirectory(lab5-cuda)
add_subdirectory(project-sudoku)
enable_testing()
cmake_host_system_information(RESULT CORES QUERY NUMBER_OF_PHYSICAL_CORES)
add_test(
NAME bench-baseline-add
COMMAND baseline-add
)
add_test(
NAME bench-pthread-add
COMMAND pthread-add
)
add_test(
NAME bench-openmp-add
COMMAND openmp-add
)
add_test(
NAME bench-mpi-add
COMMAND mpiexec -np ${CORES} ${CMAKE_CURRENT_BINARY_DIR}/lab1-naive/mpi-add
)
add_test(
NAME bench-cuda-add
COMMAND cuda-add
)
set(lena ${CMAKE_CURRENT_SOURCE_DIR}/data/lena.png)
set(png_out ${CMAKE_CURRENT_BINARY_DIR}/Testing/Temporary)
add_test(
NAME bench-pthread-erode
COMMAND pthread-erode
${lena}
${png_out}/pthread-erode
)
add_test(
NAME bench-openmp-erode
COMMAND openmp-erode
${lena}
${png_out}/openmp-erode
)
add_test(
NAME bench-mpi-erode
COMMAND mpiexec -np ${CORES} ${CMAKE_CURRENT_BINARY_DIR}/lab4-mpi/mpi-erode
${lena}
${png_out}/mpi-erode
)
add_test(
NAME bench-cuda-erode
COMMAND cuda-erode
${lena}
${png_out}/cuda-erode
)
set(grid ${CMAKE_CURRENT_SOURCE_DIR}/project-sudoku/data/16grid.txt)
add_test(
NAME bench-sudoku
COMMAND sudoku
${grid}
)
add_test(
NAME bench-sudoku-parallel
COMMAND sudoku-parallel
${grid}
)