Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SMPI finally works ;)
authornavarro <navarro@caraja.(none)>
Fri, 26 Oct 2012 17:10:22 +0000 (19:10 +0200)
committernavarro <navarro@caraja.(none)>
Fri, 26 Oct 2012 17:10:22 +0000 (19:10 +0200)
src/smpi/smpirun.in
teshsuite/smpi/mpich-test/CMakeLists.txt
teshsuite/smpi/mpich-test/pt2pt/sendcplx.stdo

index d1d395e..70a4fba 100755 (executable)
@@ -168,7 +168,7 @@ if [ -z "${HOSTFILE}" ] ; then
 fi
 
 # Don't use wc -l to compute it to avoid issues with trailing \n at EOF
-hostfile_procs=`grep -c [a-zA-Z0-9] $HOSTFILE`
+hostfile_procs=`grep -c "[a-zA-Z0-9]" $HOSTFILE`
 
 if [ -z "${NUMPROCS}" ] ; then
     # Use the amount of processes in the hostfile as default value for the -np parameter
index 783a2b1..ca3a518 100644 (file)
@@ -60,8 +60,8 @@ else()
     foreach(srcfile ${stdo_std_smpi})
         set(dstfile ${srcfile})
         string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dstfile "${dstfile}")
-        string(REGEX REPLACE "/[^/]*.std" "/" dstfile "${dstfile}")
         string(REGEX REPLACE "/[^/]*.stdo" "/" dstfile "${dstfile}")
+        string(REGEX REPLACE "/[^/]*.std" "/" dstfile "${dstfile}")
         #message("copy ${srcfile} to ${dstfile}")
         file(COPY ${srcfile} DESTINATION ${dstfile})
     endforeach()
index 7314209..3f5bbcc 100644 (file)
@@ -1,4 +1,3 @@
  Received A
  A(1,1) =  (1.,1.) A(1,2) =  (1.,2.)
- A(2,1) =  (2.,1.) A(2,2) =  (2.,2.)
-*** Testing Fortran send ***
+ A(2,1) =  (2.,1.) A(2,2) =  (2.,2.)
\ No newline at end of file