Skip to content

Commit

Permalink
Make export libraries static
Browse files Browse the repository at this point in the history
t
Signed-off-by: Jun Zhang <[email protected]>
  • Loading branch information
junaire committed Aug 21, 2024
1 parent 7a26896 commit 4a6cdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endif()
# option(PRECISION "Precision settings" BF16)
# option(USE_CUDNN "Use cudnn" ON)

add_library(train_gpt2_cpu SHARED train_gpt2.c)
add_library(train_gpt2_cpu train_gpt2.c)
target_include_directories(train_gpt2_cpu PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/llmc)
target_link_libraries(train_gpt2_cpu PRIVATE m)
target_compile_definitions(train_gpt2_cpu PRIVATE -DLLMC_LIB=1)
Expand Down

0 comments on commit 4a6cdd1

Please sign in to comment.