File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Original file line number Diff line number Diff line change @@ -469,6 +469,7 @@ add_library(ggml_static STATIC $<TARGET_OBJECTS:ggml>)
469
469
if (BUILD_SHARED_LIBS )
470
470
set_target_properties (ggml PROPERTIES POSITION_INDEPENDENT_CODE ON )
471
471
add_library (ggml_shared SHARED $< TARGET_OBJECTS:ggml> )
472
+ target_link_libraries (ggml_shared PUBLIC Threads::Threads ${LLAMA_EXTRA_LIBS} )
472
473
endif ()
473
474
474
475
add_library (llama
@@ -500,6 +501,11 @@ if (GGML_SOURCES_CUDA)
500
501
set_property (TARGET ggml_static PROPERTY CUDA_ARCHITECTURES "native" )
501
502
set_property (TARGET ggml_static PROPERTY CUDA_SELECT_NVCC_ARCH_FLAGS "Auto" )
502
503
504
+ if (BUILD_SHARED_LIBS )
505
+ set_property (TARGET ggml_shared PROPERTY CUDA_ARCHITECTURES "native" )
506
+ set_property (TARGET ggml_shared PROPERTY CUDA_SELECT_NVCC_ARCH_FLAGS "Auto" )
507
+ endif ()
508
+
503
509
set_property (TARGET llama PROPERTY CUDA_ARCHITECTURES "native" )
504
510
endif ()
505
511
You can’t perform that action at this time.
0 commit comments