Project

General

Profile

Bug #114

cvs fails compiling with --disable-mpi

Added by Rossen Apostolov about 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Erik Lindahl
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

i was trying to compile cvs-29.10.2006 without mpi support
but failed on pme.c with:

pme.c(1439): error: struct "<unnamed>" has no field "nreq_pme"
if (dd->nreq_pme) {
^

pme.c(1443): error: struct "<unnamed>" has no field "nreq_pme"
dd->nreq_pme = 0;
^

compilation aborted for pme.c (code 2)

Now, dd is a structure of type gmx_domdec_t,
which according to include/types/commrec.h has
members:
...snip...
gmx_pme_comm_n_box_p_t cnb;
#ifdef GMX_MPI
int nreq_pme;
MPI_Request req_pme4;
#endif
...snip...

but in src/mdlib/pme.c we have :
...snip...
static void gmx_pme_send_x_q_wait(gmx_domdec_t *dd) {
if (dd->nreq_pme) {
#ifdef GMX_MPI
MPI_Waitall(dd->nreq_pme,dd->req_pme,MPI_STATUSES_IGNORE);
#endif
dd->nreq_pme = 0;
}
}
...snip...

I guess the whole gmx_pme_send_x_q_wait should
be within the GMX_MPI block?

Also available in: Atom PDF