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"