Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
5f2b67be
Commit
5f2b67be
authored
Sep 18, 2017
by
Peter W. Draper
Browse files
Update to locate helper scripts in same directory
parent
0714ee6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/process_plot_tasks
View file @
5f2b67be
...
...
@@ -40,6 +40,9 @@ fi
NPROCS=$1
TIMERANGE=$2
# Locate script.
SCRIPTHOME=$(dirname "$0")
# Find all thread info files. Use version sort to get into correct order.
files=$(ls -v thread_info-step*.dat)
if test $? != 0; then
...
...
@@ -56,8 +59,8 @@ done
# And process them,
echo "Processing thread info files..."
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
.
/plot_tasks.py --expand 1 --limit $TIMERANGE --width 16 --height 4 \$0 \$2 "
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
.
/analyse_tasks.py \$0 > \$2.stats"
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
${SCRIPTHOME}
/plot_tasks.py --expand 1 --limit $TIMERANGE --width 16 --height 4 \$0 \$2 "
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
${SCRIPTHOME}
/analyse_tasks.py \$0 > \$2.stats"
echo "Writing output index.html file"
# Construct document - serial.
...
...
examples/process_plot_tasks_MPI
View file @
5f2b67be
...
...
@@ -40,6 +40,9 @@ fi
NPROCS=$1
TIMERANGE=$2
# Locate script.
SCRIPTHOME=$(dirname "$0")
# Find all thread info files. Use version sort to get into correct order.
files=$(ls -v thread_info_MPI-step*.dat)
if test $? != 0; then
...
...
@@ -61,9 +64,9 @@ nrank=$(($nrank-1))
# And process them,
echo "Processing thread info files..."
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
.
/plot_tasks.py --expand 1 --limit $TIMERANGE \$0 \$2 "
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
${SCRIPTHOME}
/plot_tasks.py --expand 1 --limit $TIMERANGE \$0 \$2 "
for i in $(seq 0 $nrank); do
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
.
/analyse_tasks.py -r $i \$0 > \$2${i}.stats"
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
${SCRIPTHOME}
/analyse_tasks.py -r $i \$0 > \$2${i}.stats"
done
echo "Writing output index.html file"
...
...
examples/process_plot_threadpool
View file @
5f2b67be
...
...
@@ -45,6 +45,9 @@ if test "$2" != ""; then
LIMIT=""
fi
# Locate script.
SCRIPTHOME=$(dirname "$0")
# Find all thread info files. Use version sort to get into correct order.
files=$(ls -v threadpool_info-step*.dat)
if test $? != 0; then
...
...
@@ -61,8 +64,8 @@ done
# And process them,
echo "Processing threadpool info files..."
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
.
/plot_threadpool.py --expand 1 --limit $TIMERANGE --width 16 --height 4 \$0 \$2 "
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
.
/analyse_threadpool_tasks.py \$0 > \$2.stats"
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
${SCRIPTHOME}
/plot_threadpool.py --expand 1 --limit $TIMERANGE --width 16 --height 4 \$0 \$2 "
echo $list | xargs -P $NPROCS -n 3 /bin/bash -c "
${SCRIPTHOME}
/analyse_threadpool_tasks.py \$0 > \$2.stats"
echo "Writing output threadpool-index.html file"
# Construct document - serial.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment