Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
5f2b67be
Commit
5f2b67be
authored
7 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Update to locate helper scripts in same directory
parent
0714ee6f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!425
Clean up task and threadpool plotting scripts
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/process_plot_tasks
+5
-2
5 additions, 2 deletions
examples/process_plot_tasks
examples/process_plot_tasks_MPI
+5
-2
5 additions, 2 deletions
examples/process_plot_tasks_MPI
examples/process_plot_threadpool
+5
-2
5 additions, 2 deletions
examples/process_plot_threadpool
with
15 additions
and
6 deletions
examples/process_plot_tasks
+
5
−
2
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.
...
...
This diff is collapsed.
Click to expand it.
examples/process_plot_tasks_MPI
+
5
−
2
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"
...
...
This diff is collapsed.
Click to expand it.
examples/process_plot_threadpool
+
5
−
2
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment