From 01714c14fe425c2579f8232f1f6ec27f8de03a4f Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Mon, 16 Sep 2019 12:15:25 +0200 Subject: [PATCH 1/1] revalidate last smpi-io test location of disk changed when moving from remote_io.xml to hosts_with_disks.xml (located on bob while on carl before). The shared file is now opened locally by bob (was opened remotely on carl before) and the recessary data transfers for remote accesses change to. If we switch carl and bob in hostfile_io we observe the same behavior as before, only the hostnames differ. --- teshsuite/smpi/io-shared/io-shared.tesh | 33 ++++++++++++------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/teshsuite/smpi/io-shared/io-shared.tesh b/teshsuite/smpi/io-shared/io-shared.tesh index 3fffd2c9df..8dba085727 100644 --- a/teshsuite/smpi/io-shared/io-shared.tesh +++ b/teshsuite/smpi/io-shared/io-shared.tesh @@ -1,6 +1,6 @@ # Test for MPI_File_read and MPI_File_write ! output sort -$ ${bindir:=.}/../../../smpi_script/bin/smpirun -map -hostfile ../hostfile_io -platform ../../../examples/platforms/storage/remote_io.xml -np 4 --log=xbt_cfg.thres:critical --log=smpi_kernel.thres:warning --log=smpi_mpi.thres:error --log=smpi_io.thres:verbose "--log=root.fmt:(%P@%h)%e%m%n" --cfg=smpi/simulate-computation:0 ${bindir:=.}/io-shared +$ ${bindir:=.}/../../../smpi_script/bin/smpirun -map -hostfile ../hostfile_io -platform ../../../examples/platforms/hosts_with_disks.xml -np 4 --log=xbt_cfg.thres:critical --log=smpi_kernel.thres:warning --log=smpi_mpi.thres:error --log=smpi_io.thres:verbose "--log=root.fmt:(%P@%h)%e%m%n" --cfg=smpi/simulate-computation:0 ${bindir:=.}/io-shared > You requested to use 4 ranks, but there is only 2 processes in your hostfile... > [rank 0] -> bob > [rank 1] -> carl @@ -13,29 +13,28 @@ $ ${bindir:=.}/../../../smpi_script/bin/smpirun -map -hostfile ../hostfile_io -p > (0@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 > (0@bob) Write in MPI_File /scratch/testfile, 4 bytes written, readsize 4 bytes, movesize 4 > (0@bob) Position after write in MPI_File /scratch/testfile : 4 -> (2@bob) Seeking in MPI_File /scratch/testfile, setting offset 4 +> (0@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 +> (2@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 > (2@bob) Write in MPI_File /scratch/testfile, 4 bytes written, readsize 4 bytes, movesize 4 -> (2@bob) Position after write in MPI_File /scratch/testfile : 8 -> (3@carl) Seeking in MPI_File /scratch/testfile, setting offset 8 +> (2@bob) Position after write in MPI_File /scratch/testfile : 4 +> (2@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 +> (3@carl) Seeking in MPI_File /scratch/testfile, setting offset 0 > (3@carl) Write in MPI_File /scratch/testfile, 4 bytes written, readsize 4 bytes, movesize 4 -> (3@carl) Position after write in MPI_File /scratch/testfile : 12 -> (1@carl) Seeking in MPI_File /scratch/testfile, setting offset 12 +> (3@carl) Position after write in MPI_File /scratch/testfile : 4 +> (1@carl) Seeking in MPI_File /scratch/testfile, setting offset 4 > (1@carl) Write in MPI_File /scratch/testfile, 4 bytes written, readsize 4 bytes, movesize 4 -> (1@carl) Position after write in MPI_File /scratch/testfile : 16 -> (0@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 -> (2@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 +> (1@carl) Position after write in MPI_File /scratch/testfile : 8 > (3@carl) Seeking in MPI_File /scratch/testfile, setting offset 0 > (1@carl) Seeking in MPI_File /scratch/testfile, setting offset 0 > (0@bob) Seeking in MPI_File /scratch/testfile, setting offset 0 > (0@bob) Read in MPI_File /scratch/testfile, 4 bytes read, readsize 4 bytes, movesize 4 > (0@bob) Position after read in MPI_File /scratch/testfile : 4 > (2@bob) Seeking in MPI_File /scratch/testfile, setting offset 4 -> (2@bob) Read in MPI_File /scratch/testfile, 4 bytes read, readsize 4 bytes, movesize 4 -> (2@bob) Position after read in MPI_File /scratch/testfile : 8 -> (3@carl) Seeking in MPI_File /scratch/testfile, setting offset 8 -> (3@carl) Read in MPI_File /scratch/testfile, 4 bytes read, readsize 4 bytes, movesize 4 -> (3@carl) Position after read in MPI_File /scratch/testfile : 12 -> (1@carl) Seeking in MPI_File /scratch/testfile, setting offset 12 +> (2@bob) Read in MPI_File /scratch/testfile, 0 bytes read, readsize 4 bytes, movesize 4 +> (2@bob) Position after read in MPI_File /scratch/testfile : 4 +> (3@carl) Seeking in MPI_File /scratch/testfile, setting offset 4 +> (3@carl) Read in MPI_File /scratch/testfile, 0 bytes read, readsize 4 bytes, movesize 4 +> (3@carl) Position after read in MPI_File /scratch/testfile : 4 +> (1@carl) Seeking in MPI_File /scratch/testfile, setting offset 4 > (1@carl) Read in MPI_File /scratch/testfile, 4 bytes read, readsize 4 bytes, movesize 4 -> (1@carl) Position after read in MPI_File /scratch/testfile : 16 - +> (1@carl) Position after read in MPI_File /scratch/testfile : 8 -- 2.20.1