Skip to content
Snippets Groups Projects
Commit af6b2478 authored by Marcin Kirsz's avatar Marcin Kirsz
Browse files

Changed inheritace, fix

parent d608d6c8
No related branches found
No related tags found
No related merge requests found
Pipeline #43439 passed
Pipeline: Tadah.MLIP

#43440

    ...@@ -266,6 +266,7 @@ class MPI_Trainer: public Trainer { ...@@ -266,6 +266,7 @@ class MPI_Trainer: public Trainer {
    double *b2 = dm2.T.ptr(); double *b2 = dm2.T.ptr();
    double wkopt2; double wkopt2;
    int lwork2 = -1; // query -> get size of the work matrix int lwork2 = -1; // query -> get size of the work matrix
    std::cout << "rank: " << rank << " 1. trans: " << trans << " PHI_cols " << PHI_cols << " PHI_rows " << PHI_rows << std::endl;
    pdgels_(&trans, &PHI_rows, &PHI_cols, &nrhs, dm2.Phi.ptr(), &ia, &ja, pdgels_(&trans, &PHI_rows, &PHI_cols, &nrhs, dm2.Phi.ptr(), &ia, &ja,
    descPHI2, b2, &ib, &jb, descB2, &wkopt2, &lwork2, &info2); descPHI2, b2, &ib, &jb, descB2, &wkopt2, &lwork2, &info2);
    if (info2 != 0) { if (info2 != 0) {
    ...@@ -273,6 +274,7 @@ class MPI_Trainer: public Trainer { ...@@ -273,6 +274,7 @@ class MPI_Trainer: public Trainer {
    } }
    lwork2 = (int)wkopt2; lwork2 = (int)wkopt2;
    double *work2 = new double[lwork2]; double *work2 = new double[lwork2];
    std::cout << "rank: " << rank << " 2. trans: " << trans << " PHI_cols " << PHI_cols << " PHI_rows " << PHI_rows << std::endl;
    pdgels_(&trans, &PHI_rows, &PHI_cols, &nrhs, dm2.Phi.ptr(), &ia, &ja, pdgels_(&trans, &PHI_rows, &PHI_cols, &nrhs, dm2.Phi.ptr(), &ia, &ja,
    descPHI2, b2, &ib, &jb, descB2, work2, &lwork2, &info2); descPHI2, b2, &ib, &jb, descB2, work2, &lwork2, &info2);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment