From c3a52b40410e6e7819935544229a873faaa8e65a Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Fri, 10 Jan 2025 01:10:27 +0000 Subject: [PATCH] need to debug gpu memory --- .gitignore | 5 ++++- src/CMakeLists.txt | 7 +++++++ src/pdlp/cupdlp/cupdlp_defs.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c36222e48d..f8e6c13665 100644 --- a/.gitignore +++ b/.gitignore @@ -287,4 +287,7 @@ result # Extra unit tests highs-unit-tests -highs-problem-set \ No newline at end of file +highs-problem-set + +# debug nvidia +build-cpu \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e37b614998..989ffb4332 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -129,6 +129,13 @@ else() # Define library in modern CMake using target_*() # No interfaces (apart from c); No ipx; New (short) ctest instances. add_library(highs) + + target_compile_definitions(highs + PUBLIC + # If the debug configuration pass the DEBUG define to the compiler + $<$:CUPDLP_DEBUG> + ) + add_library(${PROJECT_NAMESPACE}::highs ALIAS highs) if(${BUILD_SHARED_LIBS}) diff --git a/src/pdlp/cupdlp/cupdlp_defs.h b/src/pdlp/cupdlp/cupdlp_defs.h index b8a0b65023..716282859b 100644 --- a/src/pdlp/cupdlp/cupdlp_defs.h +++ b/src/pdlp/cupdlp/cupdlp_defs.h @@ -2,7 +2,7 @@ #define CUPDLP_H_GUARD // #define CUPDLP_CPU -// #define CUPDLP_DEBUG (0) +#define CUPDLP_DEBUG (1) #define CUPDLP_TIMER #include "HConfig.h"