Skip to content

Commit

Permalink
Fix issue with linking workspace to HyKKT. (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelesh authored Jan 8, 2025
1 parent fa242c1 commit 7c013d3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resolve/hykkt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,22 @@ target_include_directories(resolve_hykkt PUBLIC ${SUITESPARSE_INCLUDE_DIR})

# Link to CUDA ReSolve backend if CUDA is support enabled
if (RESOLVE_USE_CUDA)
# target_sources(resolve_hykkt PRIVATE ${HyKKT_CUDASDK_SRC})
# target_link_libraries(resolve_hykkt PUBLIC resolve_backend_cuda)
target_sources(resolve_hykkt PRIVATE ${HyKKT_CUDASDK_SRC})
target_link_libraries(resolve_hykkt PUBLIC resolve_backend_cuda)
endif()

if (RESOLVE_USE_HIP)
# target_sources(resolve_hykkt PRIVATE ${HyKKT_ROCM_SRC})
# target_link_libraries(resolve_hykkt PUBLIC resolve_backend_hip)
target_sources(resolve_hykkt PRIVATE ${HyKKT_ROCM_SRC})
target_link_libraries(resolve_hykkt PUBLIC resolve_backend_hip)
endif()

# Link to dummy device backend if GPU support is not enabled
if (NOT RESOLVE_USE_GPU)
target_link_libraries(resolve_hykkt PUBLIC resolve_backend_cpu)
endif()

target_link_libraries(resolve_hykkt PUBLIC resolve_workspace)

target_include_directories(resolve_hykkt INTERFACE
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
Expand Down

0 comments on commit 7c013d3

Please sign in to comment.