Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dpa
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
dpa
Commits
7e07ba86
Commit
7e07ba86
authored
5 years ago
by
Ali Can Demiralp
Browse files
Options
Downloads
Patches
Plain Diff
Added simple benchmark generator.
parent
1f13607f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utility/python/benchmark_generator.py
+49
-0
49 additions, 0 deletions
utility/python/benchmark_generator.py
with
49 additions
and
0 deletions
utility/python/benchmark_generator.py
0 → 100644
+
49
−
0
View file @
7e07ba86
import
json
def
generate
(
config_filepath
,
input_dataset_filepath
,
input_dataset_name
,
input_dataset_spacing_name
,
stride
,
iterations
,
particles_per_round
,
load_balancer
,
integrator
,
step_size
,
gather_particles
,
record
,
output_dataset_filepath
):
config
=
{}
config
[
"
input_dataset_filepath
"
]
=
input_dataset_filepath
config
[
"
input_dataset_name
"
]
=
input_dataset_name
config
[
"
input_dataset_spacing_name
"
]
=
input_dataset_spacing_name
config
[
"
seed_generation_stride
"
]
=
[
stride
,
stride
,
stride
]
config
[
"
seed_generation_iterations
"
]
=
iterations
config
[
"
particle_advector_particles_per_round
"
]
=
particles_per_round
config
[
"
particle_advector_load_balancer
"
]
=
load_balancer
config
[
"
particle_advector_integrator
"
]
=
integrator
config
[
"
particle_advector_step_size
"
]
=
step_size
config
[
"
particle_advector_gather_particles
"
]
=
gather_particles
config
[
"
particle_advector_record
"
]
=
record
config
[
"
output_dataset_filepath
"
]
=
output_dataset_filepath
config_json
=
json
.
dumps
(
config
)
with
open
(
config_filepath
,
'
w
'
)
as
file
:
json
.
dump
(
config
,
file
,
indent
=
2
)
# TODO: Generate accompanying sbatch shell file.
generate
(
"
test.json
"
,
"
C:/development/data/oregon/astro.h5
"
,
"
Data3
"
,
"
spacing
"
,
4
,
1000
,
10000
,
"
diffuse_greater_limited_lesser_average
"
,
"
runge_kutta_4
"
,
0.001
,
False
,
True
,
"
C:/development/data/oregon/astro_curves.h5
"
)
\ No newline at end of file
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