Skip to content

Commit f378107

Browse files
committed
Updated README.md with GPU notes and commented out WIP on zbook
1 parent 2d57b8a commit f378107

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

src/pdlp/CupdlpWrapper.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,18 @@ HighsStatus solveLpCupdlp(const HighsOptions& options, HighsTimer& timer,
7373
void* presolvedmodel = NULL;
7474
void* model2solve = NULL;
7575

76+
// WIP on zbook?
77+
//
78+
// HighsInt size_of_CUPDLPscaling = sizeof(CUPDLPscaling);
79+
//
7680
CUPDLPscaling* scaling = (CUPDLPscaling*)cupdlp_malloc(sizeof(CUPDLPscaling));
7781

82+
// WIP on zbook?
83+
//
84+
// printf("size_of_CUPDLPscaling = %d\n", size_of_CUPDLPscaling);
85+
// scaling->ifRuizScaling = 1;
86+
// printf("scaling->ifRuizScaling = %d\n", scaling->ifRuizScaling);
87+
7888
// claim solvers variables
7989
// prepare pointers
8090
CUPDLP_MATRIX_FORMAT src_matrix_format = CSC;

src/pdlp/cupdlp/README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,21 @@ The `cuPDLP-c` iteration count is held in `pdhg->timers->nIter`, but `pdhg` is d
101101

102102
- Make CupldlpWrapper.cpp look more like C++ than C
103103

104-
105-
106-
107-
104+
+## Using a GPU
105+
+
106+
+### Install CUDA
107+
+
108+
+* sudo apt update && sudo apt upgrade
109+
+* sudo apt autoremove nvidia* --purge
110+
+* sudo apt update && sudo apt upgrade
111+
+* nvcc --version
112+
+* sudo apt install nvidia-cuda-toolkit
113+
+
114+
+### Building PDLP
115+
+
116+
+export HIGHS_HOME=/home/jajhall/install
117+
+export CUDA_HOME=/usr/lib/cuda
118+
+
119+
+
120+
+
121+
+

0 commit comments

Comments
 (0)