Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
particle_methods
hysop
Commits
822f6843
Commit
822f6843
authored
8 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Plain Diff
merge
parents
e5abdb2a
f03a24d1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/advection_gpu.py
+6
-2
6 additions, 2 deletions
examples/advection_gpu.py
hysop/codegen/base/statistics.py
+1
-1
1 addition, 1 deletion
hysop/codegen/base/statistics.py
hysop/tools/callback.py
+2
-0
2 additions, 0 deletions
hysop/tools/callback.py
with
9 additions
and
3 deletions
examples/advection_gpu.py
+
6
−
2
View file @
822f6843
...
@@ -27,7 +27,7 @@ if __name__=='__main__':
...
@@ -27,7 +27,7 @@ if __name__=='__main__':
GHOSTS
=
0
GHOSTS
=
0
NSCALARS
=
0
NSCALARS
=
0
f_resolution
=
(
129
,
129
,
129
)[:
DIM
]
f_resolution
=
(
257
,
257
,
257
)[:
DIM
]
v_resolution
=
f_resolution
v_resolution
=
f_resolution
#v_resolution = (33,33,33)[:DIM]
#v_resolution = (33,33,33)[:DIM]
ghosts
=
(
GHOSTS
,)
*
DIM
ghosts
=
(
GHOSTS
,)
*
DIM
...
@@ -128,7 +128,7 @@ if __name__=='__main__':
...
@@ -128,7 +128,7 @@ if __name__=='__main__':
else
:
else
:
print
'
OK
'
print
'
OK
'
autotuner_config
=
AutotunerConfig
(
autotuner_flag
=
AutotunerFlags
.
MEASURE
,
prune_threshold
=
1.20
,
override_cache
=
False
)
autotuner_config
=
AutotunerConfig
(
autotuner_flag
=
AutotunerFlags
.
PATIENT
,
prune_threshold
=
1.20
,
override_cache
=
False
)
method
=
{
method
=
{
Backend
:
Backend
.
OPENCL
,
Backend
:
Backend
.
OPENCL
,
...
@@ -139,7 +139,11 @@ if __name__=='__main__':
...
@@ -139,7 +139,11 @@ if __name__=='__main__':
'
use_builtin_copy
'
:
True
,
'
use_builtin_copy
'
:
True
,
'
stretching
'
:
{
'
stretching
'
:
{
'
formulation
'
:
StretchingFormulation
.
GRAD_UW
,
'
formulation
'
:
StretchingFormulation
.
GRAD_UW
,
<<<<<<<
HEAD
'
order
'
:
64
'
order
'
:
64
=======
'
order
'
:
16
>>>>>>>
f03a24d1fe54c00f58e70368a14ef9043deb4581
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
hysop/codegen/base/statistics.py
+
1
−
1
View file @
822f6843
...
@@ -143,7 +143,7 @@ class TimedWorkStatistics(WorkStatistics):
...
@@ -143,7 +143,7 @@ class TimedWorkStatistics(WorkStatistics):
return
self
.
global_mem_transactions
()
/
self
.
duration
return
self
.
global_mem_transactions
()
/
self
.
duration
def
local_mem_throughput
(
self
):
def
local_mem_throughput
(
self
):
return
self
.
local_mem_transactions
()
/
self
.
duration
return
self
.
local_mem_transactions
()
/
self
.
duration
def
achieved
_mem_throughput
(
self
):
def
total
_mem_throughput
(
self
):
return
self
.
total_mem_transactions
()
/
self
.
duration
return
self
.
total_mem_transactions
()
/
self
.
duration
def
_init
(
self
):
def
_init
(
self
):
...
...
This diff is collapsed.
Click to expand it.
hysop/tools/callback.py
+
2
−
0
View file @
822f6843
...
@@ -152,6 +152,8 @@ class ComputeInterface(MemInterface):
...
@@ -152,6 +152,8 @@ class ComputeInterface(MemInterface):
if
(
timed_stats
is
not
None
):
if
(
timed_stats
is
not
None
):
if
timed_stats
.
global_mem_throughput
()
>
0
:
if
timed_stats
.
global_mem_throughput
()
>
0
:
s
+=
'
throughput={}
'
.
format
(
bdw2str
(
timed_stats
.
global_mem_throughput
()))
s
+=
'
throughput={}
'
.
format
(
bdw2str
(
timed_stats
.
global_mem_throughput
()))
if
timed_stats
.
global_mem_throughput
()
<
timed_stats
.
total_mem_throughput
():
s
+=
'
(tot={})
'
.
format
(
bdw2str
(
timed_stats
.
total_mem_throughput
()))
for
(
op_category
,
ops_per_second
)
in
timed_stats
.
ops_per_second
().
iteritems
():
for
(
op_category
,
ops_per_second
)
in
timed_stats
.
ops_per_second
().
iteritems
():
s
+=
'
{}
'
.
format
(
unit2str
(
ops_per_second
,
op_category
,
decimal
=
True
,
rounded
=
0
))
s
+=
'
{}
'
.
format
(
unit2str
(
ops_per_second
,
op_category
,
decimal
=
True
,
rounded
=
0
))
...
...
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