onerow: activate OpenMP

This commit is contained in:
2017-05-06 17:57:21 -04:00
parent fac2c3e6e9
commit 355da317ba
3 changed files with 14 additions and 5 deletions

View File

@@ -1,2 +1,9 @@
add_executable(onerow-benchmark.run src/main.cpp)
target_link_libraries (onerow-benchmark.run LINK_PUBLIC qxx_static onerow_static m pthread ${GMP_LIBRARIES} ${CPLEX_LIBRARIES})
target_link_libraries (onerow-benchmark.run LINK_PUBLIC
qxx_static
onerow_static
m
pthread
${GMP_LIBRARIES}
${CPLEX_LIBRARIES}
${OpenMP_LIBRARIES})

View File

@@ -98,6 +98,8 @@ int main(int argc, char **argv)
Stats::set_input_filename(string(input_filename));
time_printf("Using OpenMP (%d threads)\n", omp_get_max_threads());
// reads input file
time_printf("Reading input file: %s...\n", input_filename);
status = CPXreadcopyprob(env, lp, input_filename, NULL);