Skip to content

Commit b8a4e8c

Browse files
committed
Modify the repo directory structure
1 parent aed714b commit b8a4e8c

File tree

5 files changed

+151684
-7
lines changed

5 files changed

+151684
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ target_link_libraries(GoogleBenchmark INTERFACE Threads::Threads)
9797
# -------------------------------------------------------------------------------
9898
# Subdirectory
9999
# -------------------------------------------------------------------------------
100-
add_subdirectory(examples)
100+
add_subdirectory(DeepSeekR1)

examples/DeepSeekR1/CMakeLists.txt renamed to DeepSeekR1/CMakeLists.txt

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,34 @@ add_custom_command(
88
--output-dir ${CMAKE_CURRENT_BINARY_DIR}
99
COMMENT "Generating forward.mlir, subgraph0.mlir and arg0.data..."
1010
)
11+
12+
set(BIN_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin)
1113
add_custom_command(
1214
OUTPUT
13-
${CMAKE_CURRENT_BINARY_DIR}/../../bin/arg0-deepseek-r1.data
14-
${CMAKE_CURRENT_BINARY_DIR}/../../bin/vocab-deepseek-r1.txt
15-
COMMAND ${CMAKE_COMMAND} -E mv
15+
${BIN_DIR}/arg0-deepseek-r1.data
16+
${BIN_DIR}/vocab-deepseek-r1.txt
17+
COMMAND ${CMAKE_COMMAND} -E rename
1618
${CMAKE_CURRENT_BINARY_DIR}/arg0-deepseek-r1.data
17-
${CMAKE_CURRENT_BINARY_DIR}/../../bin/
19+
${BIN_DIR}/arg0-deepseek-r1.data
1820
COMMAND ${CMAKE_COMMAND} -E copy
1921
${CMAKE_CURRENT_SOURCE_DIR}/vocab-deepseek-r1.txt
20-
${CMAKE_CURRENT_BINARY_DIR}/../../bin/
21-
COMMENT "Preparing arg0.data and vocab.txt..."
22+
${BIN_DIR}/
23+
DEPENDS
24+
${CMAKE_CURRENT_SOURCE_DIR}/vocab-deepseek-r1.txt
25+
COMMENT "Preparing arg0-deepseek-r1.data and vocab-deepseek-r1.txt..."
26+
)
27+
add_custom_target(deepseek_data
28+
DEPENDS
29+
${BIN_DIR}/arg0-deepseek-r1.data
30+
${BIN_DIR}/vocab-deepseek-r1.txt
2231
)
2332

2433
add_executable(deepseek-r1
2534
Main.cpp
2635
)
36+
add_dependencies(deepseek-r1
37+
deepseek_data
38+
)
2739
target_link_libraries(deepseek-r1
2840
GoogleBenchmark
2941
${LLVM_LIBRARY_DIR}
File renamed without changes.

0 commit comments

Comments
 (0)