Menu ▾ ▴

#339 gretl_foreign.c: set_omp_threads_for_mpi() called without _OPENMP

v1.0_(example)
closed-fixed
nobody
None
5
2026-10-26
2026-10-26
No

set_omp_threads_for_mpi() in lib/src/gretl_foreign.c is defined only inside #ifdef _OPENMP, but write_mpi_script() calls it unconditionally, so a build with MPI support and without OpenMP fails with an implicit declaration error. The attached patch guards the call the same way as the definition. Found while building gretl 2026c for ALT Linux; the code is unchanged in current git master.

Discussion

  • Vitaly Lipatov

    Vitaly Lipatov - 2026-10-26

    fix build patch

     
  • Allin Cottrell

    Allin Cottrell - 2026-10-26

    Thanks, Vitaly. That's now fixed.

     
  • Allin Cottrell

    Allin Cottrell - 2026-10-26
    • status: --> closed-fixed
    • Group: --> v1.0_(example)
    • Priority: --> 5
     

Log in to post a comment.