Skip to content

Commit

Permalink
workaround missing blasfeo_dtrcpsc_l symbol on skylake
Browse files Browse the repository at this point in the history
  • Loading branch information
RSchwan committed Nov 20, 2024
1 parent 1a4b6ac commit 3225493
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/piqp/sparse/blocksparse_stage_kkt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,14 @@ class BlocksparseStageKKT : public KKTSystem<T>
blasfeo_dgead(m, m, delta_inv, AtA.D[i]->ref(), 0, 0, kkt_mat.D[i]->ref(), 0, 0);
} else {
// D_i = delta^{-1} * AtA.D_i, lower triangular
#ifdef TARGET_X64_INTEL_SKYLAKE_X
// blasfeo_dtrcpsc_l not implemented on Skylake yet
// and reference implementation not exported ...
kkt_mat.D[i]->setZero();
blasfeo_dgead(m, m, delta_inv, AtA.D[i]->ref(), 0, 0, kkt_mat.D[i]->ref(), 0, 0);
#else
blasfeo_dtrcpsc_l(m, delta_inv, AtA.D[i]->ref(), 0, 0, kkt_mat.D[i]->ref(), 0, 0);
#endif
mat_set = true;
}
}
Expand Down

0 comments on commit 3225493

Please sign in to comment.