Skip to content

Commit

Permalink
need to debug gpu memory
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jan 10, 2025
1 parent f142463 commit c3a52b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,7 @@ result

# Extra unit tests
highs-unit-tests
highs-problem-set
highs-problem-set

# debug nvidia
build-cpu
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<$<CONFIG:Debug>:CUPDLP_DEBUG>
)

add_library(${PROJECT_NAMESPACE}::highs ALIAS highs)

if(${BUILD_SHARED_LIBS})
Expand Down
2 changes: 1 addition & 1 deletion src/pdlp/cupdlp/cupdlp_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c3a52b4

Please sign in to comment.