Skip to content

Commit bc0343e

Browse files
committed
Clearer
1 parent 5f57116 commit bc0343e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

highs/ipm/hipo/ipm/FactorHiGHSSolver.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,10 @@ Int FactorHiGHSSolver::setNla() {
573573
return kStatusOk;
574574
}
575575

576+
static bool usingAppleBlas() {
577+
return strstr(HighsExtras::blas::getInfo()->provider, "Apple") != nullptr;
578+
}
579+
576580
void FactorHiGHSSolver::setParallel() {
577581
// Set parallel options
578582
bool parallel_tree = false;
@@ -598,7 +602,7 @@ void FactorHiGHSSolver::setParallel() {
598602
assert(1 == 0);
599603

600604
} else if (options_.parallel == kHighsChooseString) {
601-
if (strstr(HighsExtras::blas::getInfo()->provider, "Apple")) {
605+
if (usingAppleBlas()) {
602606
// Blas on Apple do not work well with parallel_node, but parallel_tree
603607
// seems to always be beneficial.
604608
parallel_node = false;

0 commit comments

Comments
 (0)