Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stripped-hds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Guillaume Damiand
stripped-hds
Commits
f0e66e00
Commit
f0e66e00
authored
3 years ago
by
Guillaume Damiand
Browse files
Options
Downloads
Patches
Plain Diff
Add script for gis files
parent
b63d624a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run-gis-test.sh
+43
-0
43 additions, 0 deletions
run-gis-test.sh
with
43 additions
and
0 deletions
run-gis-test.sh
0 → 100755
+
43
−
0
View file @
f0e66e00
#!/bin/bash
################################################################################
# Run tests on all the gis files
# Usage run-gis-test [REPEAT]
# REPEAT is the number of runs to do for each file; computation time will be
# the average of these runs. 1 by default.
REPEAT
=
1
# Number of runs; computation time will be the average
PROG
=
"./src/builds/release/parallel-arrangement-bench"
# Executable name
if
((
$#
>
1
))
REPEAT
=
${
1
}
fi
# Test function: 1st parameter: directory that contains segment files; 2nd parameter: options
function
test
{
echo
"########################################
${
2
}
###############################"
>>
times.dat
echo
"########################################
${
2
}
################################"
>>
detailed-times.dat
echo
"########################################
${
2
}
###############################"
>>
nbcells.dat
for
file
in
"
${
1
}
/"
*
.txt
do
${
PROG
}
-t1
"
${
file
}
"
-cgal
-repeat
${
REPEAT
}
# echo -n "${file} - " >> times.dat
for
i
in
1 2 4 8 16 32
do
${
PROG
}
-t1
"
${
file
}
"
-nbs
$((
i
))
-nbt
${
i
}
-repeat
${
REPEAT
}
${
2
}
done
echo
""
>>
times.dat
echo
""
>>
detailed-times.dat
done
}
echo
"################################################################################"
>>
times.dat
echo
"################################################################################"
>>
detailed-times.dat
echo
"################################################################################"
>>
nbcells.dat
echo
"#GlobalTimes CGAL 1 2 4 8 16 32"
>>
times.dat
echo
"#DetailedTimes LoadAndDispatch ComputeLocals ComputeLCC"
>>
detailed-times.dat
echo
"#NbCells HalfEdges Vertices Edges FiniteFaces Faces CriticalSegments"
>>
nbcells.dat
gunzip
./data/countries/
*
.gzip
test
./data/countries
"-crop"
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