Serpent2 on blue gene/q

Parallelization with OpenMP and MPI, scalability, reproducibility, errors, problems suggestions
orca.blu
Posts: 59
Joined: Wed Apr 20, 2011 1:39 pm

Re: Serpent2 on blue gene/q

Post by orca.blu » Thu Apr 25, 2013 11:46 pm

I tried the feof function on readtextfile.c on bg/q and it works (but calculation stops anyway at the next EOF call).

On my notebook and another machine, feof version of readtextfile.c works as well, with no difference with respect to EOF version.
Manuele Aufiero
LPSC/IN2P3/CNRS Grenoble

User avatar
Jaakko Leppänen
Site Admin
Posts: 2356
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Serpent2 on blue gene/q

Post by Jaakko Leppänen » Fri Apr 26, 2013 2:29 pm

Maybe the problem is just that in your file system the end-of-file is indicated by numerical value 255 instead of -1. As a simple workaround, could you try adding:

#define EOF 255

in header.h to see if that fixes the problem?
- Jaakko

orca.blu
Posts: 59
Joined: Wed Apr 20, 2011 1:39 pm

Re: Serpent2 on blue gene/q

Post by orca.blu » Mon May 06, 2013 11:22 pm

Yes, that fixed the problem.

Thanks!
Manuele Aufiero
LPSC/IN2P3/CNRS Grenoble

Post Reply