Skip to content

Commit a76bcf7

Browse files
committed
enable DTO build without memcpy changes to cachebench
1 parent 1d11c20 commit a76bcf7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cachelib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ set(PACKAGE_BUGREPORT "https://github.com/facebook/TBD")
4343
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
4444

4545
option(BUILD_TESTS "If enabled, compile the tests." ON)
46+
option(BUILD_WITH_DTO "If enabled, build with DSA transparent offloading." OFF)
4647

4748

4849
set(BIN_INSTALL_DIR bin CACHE STRING

cachelib/cachebench/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ endif()
5151
add_executable (cachebench main.cpp)
5252
target_link_libraries(cachebench cachelib_cachebench)
5353

54+
if (BUILD_WITH_DTO)
55+
target_link_libraries(cachebench accel-config dto)
56+
endif ()
57+
5458
install(
5559
TARGETS
5660
cachebench

0 commit comments

Comments
 (0)