JeffersonLab / qphix

QCD for Intel Xeon Phi and Xeon processors
http://jeffersonlab.github.io/qphix/
Other
13 stars 11 forks source link

Undefining SEEK_SET? #38

Closed martin-ueding closed 6 years ago

martin-ueding commented 7 years ago

In some test programs, there is the following interesting code:

// Stupid compiler thing
#undef SEEK_SET
#undef SEEK_CUR
#undef SEEK_END

What is it about? Is perhaps the include order of MPI and standard library wrong such that MPI cannot properly override certain things?

martin-ueding commented 7 years ago

On my Fedora laptop, I currently try to get QPhiX compiling with OpenMPI. There I have version 1.10.5, which apparently only supports version 2 of the MPI standard. Since in qphix/comm.h, there are these #undef statements, it does not compile with that version of OpenMPI.

What is this undocumented hack about? And what version of MPI does QPhiX need?

martin-ueding commented 6 years ago

I have removed these, let's see how Travis CI likes that. This is then under review in #96.