MPI-FTW is an application used to traverse a directory tree using MPI.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
GPL (GNU General Public License) 
3.1/5 15
James Nunez
ROOT \ Programming \ Quality Assurance and Testing
MPI-FTW is an application used to traverse a directory tree using MPI. Each time a new directory is located, a process is allocated to walk that particular branch. Upon completion, this program will provide directory count, file count and time to complete statistics.

This program also accepts an argument that states that commands are to be run on each directory found.


Usage: mpirun [mpi arguments] mpi-ftw --path=path [--cmdfile=filename] [--verbose]

Where path is a required argument that specifies the top level path to begin walk.

--verbose is an optional argument that provides more information on traversal progress.
--cmdfile specifies a file containing the commands to run on directories. The format of this file is specified below.

The basic format is as follows:

# comment
all "command" or process_range "command1" and/or processes "command2"

A line starting with # is a comment
commands can be specified on a process by process basis.

NOTE: Processes 0 and 1 are reserved for management and collection purposes. Use

processes >= 2

"all" specifies all processes (with the exception of process 0 and 1)
process_range is a range of processes to run command
processes is a comma delimited list of processes
processes ranges and comma delimited lists can be included on the same line

#example 1:
2-5,10-12,15 "echo directory = %D"
18,20,22,23-26 "ls -al"

#example 2:
all "ls %D"

Special conversion variables can be used in the command. The conversion
variables are:
%r rank of process
%R relative path designation
%D full current directory path
%A last directory in path (final /dirname in current directory)

Last updated on April 17th, 2008

#traverse directory tree #MPI tests #directory count #MPI #FTW #traverse #directory

Add your review!