Skip to content

Commit

Permalink
free gpu memory, localtermination wip
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jan 13, 2025
1 parent e0b5713 commit 64e8a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ if(NOT(${HIGHS_NO_DEFAULT_THREADS} STREQUAL "OFF"))
endif()

add_compile_options("$<$<AND:$<CONFIG:Debug,RelWithDebInfo>,$<COMPILE_LANGUAGE:CUDA>>:-G>")
add_compile_options("-g3")

# If Visual Studio targets are being built.
if(MSVC)
Expand Down
6 changes: 3 additions & 3 deletions src/pdlp/cupdlp/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ target_compile_options(cudalin PRIVATE
# PUBLIC
# $<$<CONFIG:Debug>: "-G")

# if(CMAKE_BUILD_TYPE STREQUAL "Debug")
# target_compile_options(cudalin PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-G>)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(cudalin PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-G>)

# endif()
endif()

set_target_properties(cudalin PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
# target_include_directories(cudalin PUBLIC "/usr/local/cuda/include")
Expand Down

0 comments on commit 64e8a41

Please sign in to comment.