Skip to content

Commit 1c2ed66

Browse files
authored
Fixes #24
Adds custom make targets: examples and benchmarks From now, `make` or `make all` will compile examples/ and benchmarks/ `make examples` will compile examples/ `make benchmarks` will compile benchmarks/ Also, benchmark folder has been renamed to benchmarks.
1 parent fae7839 commit 1c2ed66

70 files changed

Lines changed: 193 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,21 @@ set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_CXX_EXTENSIONS OFF)
77

8+
if(NOT CMAKE_BUILD_TYPE)
9+
set(CMAKE_BUILD_TYPE Release)
10+
endif()
11+
12+
# set(CMAKE_CXX_FLAGS "-Wall -Wextra")
13+
set(CMAKE_CXX_FLAGS_DEBUG "-g")
14+
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
15+
816
include_directories(${Matrix_SOURCE_DIR}/include)
17+
include_directories(${Matrix_SOURCE_DIR}/lib/benchmark/include)
18+
link_directories(${Matrix_SOURCE_DIR}/lib/benchmark/build/src)
19+
920

21+
add_custom_target(examples)
1022
add_subdirectory(examples)
1123

24+
add_custom_target(benchmarks)
25+
add_subdirectory(benchmarks)

benchmark/linux_binaries/BM_T

-648 KB
Binary file not shown.

benchmark/linux_binaries/BM_abs

-648 KB
Binary file not shown.
-648 KB
Binary file not shown.

benchmark/linux_binaries/BM_all

-703 KB
Binary file not shown.

benchmark/linux_binaries/BM_argmax

-648 KB
Binary file not shown.

benchmark/linux_binaries/BM_argmin

-648 KB
Binary file not shown.
-244 KB
Binary file not shown.
-244 KB
Binary file not shown.
-648 KB
Binary file not shown.

0 commit comments

Comments
 (0)