Skip to content

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanUnderhill committed Feb 21, 2025
1 parent 479f85d commit b1b223b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ if(CMAKE_GENERATOR_TOOLSET MATCHES "Visual Studio")
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(onnxruntime-genai PRIVATE "LINKER:-rpath=\$ORIGIN")
set_target_properties(onnxruntime-genai PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(onnxruntime-genai PRIVATE dl) # For dlopen & co
endif()
Expand Down
1 change: 1 addition & 0 deletions src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if(USE_CUDA AND CMAKE_CUDA_COMPILER)
enable_language(CUDA)
set_target_properties(python PROPERTIES LINKER_LANGUAGE CUDA)
target_link_libraries(python PRIVATE cublas curand cudart)
target_link_libraries(python PRIVATE onnxruntime-genai-cuda)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${python_srcs})
Expand Down

0 comments on commit b1b223b

Please sign in to comment.