Re: [OMPI users] File seeking with shared filepointer issues

2011-06-29 Thread Christian Anonymous
Thank you for your answer. Since a collective operation does not mean synchronization, I guess this also means that I should put an MPI_Barrier after the seek in order to ensure that no process changes the file pointer while an other process accesses it. To be honest this interface to MPI_File_see

[OMPI users] Problem in static linking and usage of openmpi with icc (and gcc)

2011-06-29 Thread rohan nigam
Hello Everyone, I am trying to statically build open mpi libraries from a server which has intel and pgi compilers installed and copy the resulting binaries to be used on another test server since I do not have intel and pgi compilers on these test servers (only gcc). First of all, please tell m

[OMPI users] data types and alignment to word boundary

2011-06-29 Thread jody
Hi I have noticed on my machine that a struct which i have defined as typedef struct { short iSpeciesID; char sCapacityFile[SHORT_INPUT]; double adGParams[NUM_GPARAMS]; } tVStruct; (where SHORT_INPUT=64 and NUM_GPARAMS=4) has size 104 (instead of 98) whereas the corresponding MPI

Re: [OMPI users] data types and alignment to word boundary

2011-06-29 Thread Jeff Squyres
There's probably an alignment gap between the short and char array, and possibly an alignment gap between the char array and the double array (depending on the value of SHORT_INPUT and your architecture). So for your displacements, you should probably actually measure what the displacements are

Re: [OMPI users] data types and alignment to word boundary

2011-06-29 Thread Dave Goodell
On Jun 29, 2011, at 10:56 AM CDT, Jeff Squyres wrote: > There's probably an alignment gap between the short and char array, and > possibly an alignment gap between the char array and the double array > (depending on the value of SHORT_INPUT and your architecture). > > So for your displacements,

Re: [OMPI users] data types and alignment to word boundary

2011-06-29 Thread Gus Correa
jody wrote: Hi I have noticed on my machine that a struct which i have defined as typedef struct { short iSpeciesID; char sCapacityFile[SHORT_INPUT]; double adGParams[NUM_GPARAMS]; } tVStruct; (where SHORT_INPUT=64 and NUM_GPARAMS=4) has size 104 (instead of 98) whereas the cor

Re: [OMPI users] Problem in static linking and usage of openmpi with icc (and gcc)

2011-06-29 Thread Jeff Squyres
On Jun 29, 2011, at 11:31 AM, rohan nigam wrote: > I am trying to statically build open mpi libraries from a server which has > intel and pgi compilers installed and copy the resulting binaries to be used > on another test server since I do not have intel and pgi compilers on these > test serve

Re: [OMPI users] data types and alignment to word boundary

2011-06-29 Thread jody
Guys - Thank You for your replies! (wow : that was a rhyme! :) ) I checked my structure with the offsetof macro on my laptop at home and found the following offsets: offs iSpeciesID: 0 offs sCapacityFile: 2 offs adGParams: 68 total size 100 so there seems to be a 2 byte gap before t

Re: [OMPI users] data types and alignment to word boundary

2011-06-29 Thread Gus Correa
Gus Correa wrote: jody wrote: Hi I have noticed on my machine that a struct which i have defined as typedef struct { short iSpeciesID; char sCapacityFile[SHORT_INPUT]; double adGParams[NUM_GPARAMS]; } tVStruct; (where SHORT_INPUT=64 and NUM_GPARAMS=4) has size 104 (instead of

Re: [OMPI users] data types and alignment to word boundary

2011-06-29 Thread Gus Correa
Hi Jody jody wrote: Guys - Thank You for your replies! (wow : that was a rhyme! :) ) I checked my structure with the offsetof macro on my laptop at home and found the following offsets: offs iSpeciesID: 0 offs sCapacityFile: 2 offs adGParams: 68 total size 100 so there seems to b

Re: [OMPI users] Problem with prebuilt ver 1.5.3 for windows

2011-06-29 Thread Jeffrey A Cummings
Anyone (Shiqing perhaps) have any more thoughts on this problem? - Jeff From: Damien To: Open MPI Users List-Post: users@lists.open-mpi.org Date: 06/24/2011 03:59 PM Subject:Re: [OMPI users] Problem with prebuilt ver 1.5.3 for windows Sent by:users-boun...@open-mpi.o

Re: [OMPI users] Problem in static linking and usage of openmpi with icc (and gcc)

2011-06-29 Thread Gus Correa
Hi Rohan Have you tried to configure/compile OpenMPI and compile your program with: -static-intel (Intel icc/ifort) -Bstatic_pgi (PGI pgcc/pgf90) ? Presumably this will link to each *compiler's* static libraries. You may not need to configure Open MPI with --disable-shared, if you copy it ove