Skip to content

Commit 55aab22

Browse files
committed
Add printing of BLAS path to the log
1 parent b9e3cd0 commit 55aab22

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

highs/HConfig.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#cmakedefine HIGHS_HAVE_MM_PAUSE
1313
#cmakedefine HIGHS_HAVE_BUILTIN_CLZ
1414
#cmakedefine HIGHS_HAVE_BITSCAN_REVERSE
15+
#cmakedefine BLAS_LIBRARIES "@BLAS_LIBRARIES@"
1516

1617
#define HIGHS_GITHASH "@GITHASH@"
1718
#define HIGHS_VERSION_MAJOR @HIGHS_VERSION_MAJOR@

highs/ipm/hipo/ipm/Solver.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,11 +1421,21 @@ void Solver::printOutput() const {
14211421
void Solver::printInfo() const {
14221422
std::stringstream log_stream;
14231423
log_stream << "\nRunning HiPO\n";
1424+
1425+
// Print blas path
1426+
#ifdef BLAS_LIBRARIES
1427+
log_stream << textline("BLAS:") << BLAS_LIBRARIES << '\n';
1428+
#else
1429+
log_stream << textline("BLAS:") << "Unknown\n";
1430+
#endif
1431+
1432+
// Print number of threads
14241433
if (options_.parallel == kOptionParallelOff)
14251434
log_stream << textline("Threads:") << 1 << '\n';
14261435
else
14271436
log_stream << textline("Threads:") << highs::parallel::num_threads()
14281437
<< '\n';
1438+
14291439
logH_.print(log_stream);
14301440

14311441
// print information about model

0 commit comments

Comments
 (0)