I am seeing that permissions on files created by MPI programs change
depending on which boot module I have selected.
I am using LAM 7.1.1 configured with this command:
./configure --with-tm=/usr/pbs --prefix=/opt/share/lam-7.1.1
--without-fc --without-mpi2cpp
(I know it probably doesn't matter, but LAM was compiled with gcc
version 3.3.5, not the Intel compilers that were the subject of my last
question)
My umask is set to 0022.
Test code:
#include <mpi.h>
#include <stdio.h>
int main( int argc, char *argv[] )
{
char filename[2048];
int myRank = -1, numProcs = -1;
MPI_Init( &argc, &argv );
MPI_Comm_rank( MPI_COMM_WORLD, &myRank );
MPI_Comm_size( MPI_COMM_WORLD, &numProcs );
sprintf( filename, "node_%d_of_%d", myRank, numProcs );
FILE *tempfile = fopen( filename, "w" );
if( NULL != tempfile )
fclose( tempfile );
return 0;
}
PBS script:
#!/bin/bash
echo `date`
lamboot -v -ssi boot rsh $PBS_NODEFILE
mpirun -np 2 /tmp/a.out
Resulting files:
-rw-r--r-- 1 user1 g1 0 2006-03-20 12:16 node_1_of_2
-rw-r--r-- 1 user1 g1 0 2006-03-20 12:16 node_0_of_2
If I change the script to this:
#!/bin/bash
echo `date`
lamboot -v -ssi boot tm $PBS_NODEFILE
mpirun -np 2 /tmp/a.out
Resulting files:
-rw------- 1 user1 g1 0 2006-03-20 12:15 node_1_of_2
-rw------- 1 user1 g1 0 2006-03-20 12:15 node_0_of_2
Is this by design? I need the files created when using the tm boot
module to have the -rw-r--r-- permissions. Can this be configured? If
not, any pointers on where in the source code I need to tweak?
Thanks again!
--
Scott Campbell
PBS Professional Support Engineer
Phone: 248-614-2400 ext. 585
Email: scc_at_[hidden]
Technical Support Hotline: 248-614-2425
Technical Support Email: pbssupport_at_[hidden]
|