Skip to content

Commit

Permalink
link extra unit test with cudalin
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Nov 12, 2024
1 parent 5a53d15 commit f9d400f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions check/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ if ((NOT FAST_BUILD OR ALL_TESTS) AND NOT (BUILD_EXTRA_UNIT_ONLY))

if (FAST_BUILD)
target_link_libraries(unit_tests highs Catch)

if (CUPDLP_GPU)
target_link_libraries(unit_tests cudalin ${CUDA_LIBRARY} m)
target_include_directories(unit_tests PRIVATE ${HIGHS_SOURCE_DIR}/src/pdlp/cupdlp/cuda)
set_target_properties(unit_tests PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
endif()
else()
target_link_libraries(unit_tests libhighs Catch)
endif()
Expand Down

0 comments on commit f9d400f

Please sign in to comment.