MPI-FTW is an application used to traverse a directory tree using MPI.
Version: 1.3MPI-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.
Operating System: Linux
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:
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
2-5,10-12,15 "echo directory = %D"
18,20,22,23-26 "ls -al"
all "ls %D"
Special conversion variables can be used in the command. The conversion
%r rank of process
%R relative path designation
%D full current directory path
%A last directory in path (final /dirname in current directory)