File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -305,11 +305,11 @@ if(ON_INFER AND WITH_GPT AND WITH_SP)
305
305
)
306
306
307
307
include_directories (
308
- ${THIRD_PATH} /source /sentencepiece/src/
308
+ ${CMAKE_BINARY_DIR} / ${ THIRD_PATH} /source /sentencepiece/src/
309
309
)
310
310
311
311
link_directories (
312
- ${THIRD_PATH} /build /sentencepiece/src/
312
+ ${CMAKE_BINARY_DIR} / ${ THIRD_PATH} /build /sentencepiece/src/
313
313
)
314
314
315
315
add_definitions (-DGPT_ON_SENTENCEPIECE)
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ if(ON_INFER)
146
146
endif (NOT WIN32 )
147
147
148
148
cuda_add_library(decoding_infer_op ${decoding_op_files} ${decoder_op_files} SHARED)
149
- add_dependencies (decoding_infer_op extern_${THIRD_PARTY_NAME} )
149
+ add_dependencies (decoding_infer_op extern_${THIRD_PARTY_NAME} boost )
150
150
151
151
string (REPLACE "/" ";" DEMO_PATH ${DEMO} )
152
152
@@ -161,6 +161,7 @@ if(ON_INFER)
161
161
162
162
if (WITH_GPT AND WITH_SP)
163
163
set (DEPS ${DEPS} sentencepiece)
164
+ add_dependencies (decoding_infer_op extern_sentencepiece)
164
165
endif ()
165
166
166
167
if (WIN32 )
You can’t perform that action at this time.
0 commit comments