Skip to content

Commit adf2b83

Browse files
authored
Merge pull request #441 from NVIDIA/branch-25.10
Forward-merge branch-25.10 into branch-25.12
2 parents 49dc976 + 1e208da commit adf2b83

File tree

15 files changed

+1002
-598
lines changed

15 files changed

+1002
-598
lines changed

benchmarks/linear_programming/cuopt/run_mip.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <rmm/mr/device/owning_wrapper.hpp>
3737

3838
#include <fcntl.h>
39+
#include <omp.h>
3940
#include <sys/file.h>
4041
#include <sys/wait.h>
4142
#include <unistd.h>
@@ -382,6 +383,8 @@ int main(int argc, char* argv[])
382383
double memory_limit = program.get<double>("--memory-limit");
383384
bool track_allocations = program.get<std::string>("--track-allocations")[0] == 't';
384385

386+
if (num_cpu_threads < 0) { num_cpu_threads = omp_get_max_threads() / n_gpus; }
387+
385388
if (program.is_used("--out-dir")) {
386389
out_dir = program.get<std::string>("--out-dir");
387390
result_file = out_dir + "/final_result.csv";

0 commit comments

Comments
 (0)