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
f1e2a370
Commit
f1e2a370
authored
12 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
update test script.
Former-commit-id: 74fc8a1385955db1e0c2728768b48dd924d6b516
parent
2484d43e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/test_mc.sh
+11
-5
11 additions, 5 deletions
examples/test_mc.sh
with
11 additions
and
5 deletions
examples/test_mc.sh
+
11
−
5
View file @
f1e2a370
...
...
@@ -3,11 +3,19 @@
# Set the default OpenMP behaviour
export
OMP_WAIT_POLICY
=
PASSIVE
# Re-build the code on the target architecture
cd
..
./configure
--with-gcc-arch
=
native
cd
src
make clean
&&
make
-j
8
cd
../examples
make clean
&&
make
-j
8
# Clear up the memory first
# ./memhog `free -g | grep Mem | awk '{print int(0.9*$2)}'`
# loop over number of CPUs
for
cpu
in
{
1..
32
}
for
cpu
in
{
1..
16
}
do
# Set some environment variables for OpenMP
...
...
@@ -15,10 +23,8 @@ do
export
OMP_THREAD_LIMIT
=
$cpu
export
OMP_PROC_BIND
=
TRUE
# ./test -r 100 -t $cpu -q $cpu -b "25000 25000 25000" -N 149646 -c data/Coordinates.txt -s "12500 12500 12500" -h data/SmoothingLength.txt > test_${cpu}.dump
./test
-r
100
-t
$cpu
-q
$cpu
-b
"100 100 100"
-N
3664514
-c
data2/Coordinates.txt
-h
data2/SmoothingLength.txt
>
test2_
${
cpu
}
.dump
./test
-r
1000
-t
$cpu
-b
"1400 1400 1400"
-N
74240
-c
small/Coordinates.txt.gz
-s
"700 700 700"
-p
0
-h
small/SmoothingLength.txt.gz
-m
470
-z
200
>
small_
${
cpu
}
.dump
#
./test -r 100 -t $cpu
-q $cpu
-b "1
4
0 1
4
0 1
4
0" -N
7741 -c shrink
/Coordinates.txt -s "
7
0
7
0
7
0" -
h shrink
/SmoothingLength.txt
> shrink
_${cpu}.dump
./test
-r
100
-t
$cpu
-b
"1
0
0 1
0
0 1
0
0"
-N
3558892
-c
snap_C09
/Coordinates.txt
.gz
-s
"
5
0
5
0
5
0"
-
p
0
-h
snap_C09
/SmoothingLength.txt
.gz
-m
6.138
>
snap_C09
_
${
cpu
}
.dump
done
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