From 64e8a41bb53115466fc75bd345c6cb375a620806 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Mon, 13 Jan 2025 20:25:03 +0000 Subject: [PATCH] free gpu memory, localtermination wip --- CMakeLists.txt | 1 + src/pdlp/cupdlp/cuda/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02ee758bef..e28710e602 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -391,6 +391,7 @@ if(NOT(${HIGHS_NO_DEFAULT_THREADS} STREQUAL "OFF")) endif() add_compile_options("$<$,$>:-G>") +add_compile_options("-g3") # If Visual Studio targets are being built. if(MSVC) diff --git a/src/pdlp/cupdlp/cuda/CMakeLists.txt b/src/pdlp/cupdlp/cuda/CMakeLists.txt index 14eab1b8cc..ad60caae20 100644 --- a/src/pdlp/cupdlp/cuda/CMakeLists.txt +++ b/src/pdlp/cupdlp/cuda/CMakeLists.txt @@ -18,10 +18,10 @@ target_compile_options(cudalin PRIVATE # PUBLIC # $<$: "-G") -# if(CMAKE_BUILD_TYPE STREQUAL "Debug") -# target_compile_options(cudalin PRIVATE $<$:-G>) +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + target_compile_options(cudalin PRIVATE $<$:-G>) -# endif() +endif() set_target_properties(cudalin PROPERTIES CUDA_SEPARABLE_COMPILATION ON) # target_include_directories(cudalin PUBLIC "/usr/local/cuda/include")