Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make it easier to ignore SMPI temp files, and do so in the .gitignore
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 31 Oct 2015 23:25:48 +0000 (00:25 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 31 Oct 2015 23:25:48 +0000 (00:25 +0100)
.gitignore
src/smpi/smpirun.in

index e485f56..47d4275 100644 (file)
@@ -14,6 +14,7 @@
 *.class
 \#*
 .attach_pid* 
+smpitmp-*
 
 ### cmake
 CTestCustom.cmake
@@ -603,7 +604,6 @@ teshsuite/smpi/mpich3-test/coll/scatter2
 teshsuite/smpi/mpich3-test/coll/scatter3
 teshsuite/smpi/mpich3-test/coll/scattern
 teshsuite/smpi/mpich3-test/coll/scatterv
-teshsuite/smpi/mpich3-test/coll/tmp*
 teshsuite/smpi/mpich3-test/coll/uoplong
 teshsuite/smpi/mpich3-test/comm/cmfree
 teshsuite/smpi/mpich3-test/comm/cmsplit
index 87b0750..fb1754a 100755 (executable)
@@ -291,7 +291,7 @@ fi
 
 if [ -z "${HOSTFILE}" ] ; then
     HOSTFILETMP=1
-    HOSTFILE="$(mktemp tmphostXXXXXX)"
+    HOSTFILE="$(mktemp smpitmp-hostfXXXXXX)"
     perl -ne 'print "$1\n" if /.*<host.*?id="(.*?)".*?\/>.*/' ${PLATFORM} > ${HOSTFILE}
     perl -ne 'if (/.*<cluster.*?prefix="(.*?)".*?radical="(.*?)".*?suffix="(.*?)".*/) { 
                 my ($pre,$rad,$post)=($1,$2,$3); 
@@ -314,7 +314,7 @@ UNROLLEDHOSTFILETMP=0
 multiple_processes=`grep -c ":" $HOSTFILE`
 if [ "${multiple_processes}" -gt 0 ] ; then
     UNROLLEDHOSTFILETMP=1
-    UNROLLEDHOSTFILE="$(mktemp tmphostXXXXXX)"
+    UNROLLEDHOSTFILE="$(mktemp smpitmp-hostfXXXXXX)"
     perl -ne ' do{ for ( 1 .. $2 ) { print "$1\n" } } if /(.*?):(\d+).*/'  ${HOSTFILE}  > ${UNROLLEDHOSTFILE}
     if [ ${HOSTFILETMP} = 1 ] ; then
         rm ${HOSTFILE}
@@ -343,7 +343,7 @@ fi
 
 ##-------------------------------- DEFAULT or SPECIFIED PLATFORM --------------------------------------
 if [ -z "${PLATFORM}" ]; then
-    PLATFORMTMP="$(mktemp tmpXXXXXX)"
+    PLATFORMTMP="$(mktemp smpitmp-platfXXXXXX)"
 
     cat > ${PLATFORMTMP} <<PLATFORMHEAD
 <?xml version='1.0'?>
@@ -385,7 +385,7 @@ fi
 ##-------------------------------- end DEFAULT or SPECIFIED PLATFORM --------------------------------------
 
 ##-------------------------------- DEFAULT APPLICATION --------------------------------------
-APPLICATIONTMP="$(mktemp tmpXXXXXX)"
+APPLICATIONTMP="$(mktemp smpitmp-appXXXXXX)"
 #APPLICATIONTMP="app.xml"