-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
121 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
|
||
ERMIA_SRCS1+=\ | ||
$(REL)result.cc\ | ||
$(REL)util.cc\ | ||
|
||
MOCC_SRCS1+=\ | ||
$(REL)result.cc\ | ||
$(REL)util.cc\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(ccbench_mocc | ||
VERSION 0.0.1 | ||
DESCRIPTION "mocc of ccbench" | ||
LANGUAGES CXX) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake") | ||
|
||
option(ENABLE_SANITIZER "enable sanitizer on debug build" ON) | ||
option(ENABLE_UB_SANITIZER "enable undefined behavior sanitizer on debug build" OFF) | ||
option(ENABLE_COVERAGE "enable coverage on debug build" OFF) | ||
|
||
find_package(Doxygen) | ||
find_package(Threads REQUIRED) | ||
find_package(gflags REQUIRED) | ||
find_package(glog REQUIRED) | ||
find_package(Boost | ||
COMPONENTS filesystem) | ||
|
||
include(GNUInstallDirs) | ||
include(CMakePackageConfigHelpers) | ||
include(CompileOptions) | ||
|
||
file(GLOB ERMIA_SOURCES | ||
"../common/result.cc" | ||
"../common/util.cc" | ||
"lock.cc" | ||
"mocc.cc" | ||
"result.cc" | ||
"transaction.cc" | ||
"util.cc" | ||
) | ||
|
||
add_executable(mocc.exe ${ERMIA_SOURCES}) | ||
|
||
target_link_libraries(mocc.exe | ||
Boost::filesystem | ||
gflags::gflags | ||
${PROJECT_SOURCE_DIR}/../third_party/mimalloc/out/release/libmimalloc.a | ||
${PROJECT_SOURCE_DIR}/../third_party/masstree/libkohler_masstree_json.a | ||
Threads::Threads | ||
) | ||
|
||
if (DEFINED ADD_ANALYSIS) | ||
add_definitions(-DADD_ANALYSIS=${ADD_ANALYSIS}) | ||
else () | ||
add_definitions(-DADD_ANALYSIS=0) | ||
endif () | ||
|
||
if (DEFINED BACK_OFF) | ||
add_definitions(-DBACK_OFF=${BACK_OFF}) | ||
else () | ||
add_definitions(-DBACK_OFF=0) | ||
endif () | ||
|
||
if (DEFINED KEY_SIZE) | ||
add_definitions(-DKEY_SIZE=${KEY_SIZE}) | ||
else () | ||
add_definitions(-DKEY_SIZE=8) | ||
endif () | ||
|
||
if (DEFINED KEY_SORT) | ||
add_definitions(-DKEY_SORT=${KEY_SORT}) | ||
else () | ||
add_definitions(-DKEY_SORT=0) | ||
endif () | ||
|
||
if (DEFINED MASSTREE_USE) | ||
add_definitions(-DMASSTREE_USE=${MASSTREE_USE}) | ||
else () | ||
add_definitions(-DMASSTREE_USE=1) | ||
endif () | ||
|
||
add_definitions(-DRWLOCK) | ||
|
||
if (DEFINED TEMPERATURE_RESET_OPT) | ||
add_definitions(-DTEMPERATURE_RESET_OPT=${TEMPERATURE_RESET_OPT}) | ||
else () | ||
add_definitions(-DTEMPERATURE_RESET_OPT=1) | ||
endif () | ||
|
||
if (DEFINED VAL_SIZE) | ||
add_definitions(-DVAL_SIZE=${VAL_SIZE}) | ||
else () | ||
add_definitions(-DVAL_SIZE=4) | ||
endif () |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters