Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Andreas Klöckner
loopy
Commits
430c5187
Commit
430c5187
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Make auto_test more flexible regarding not running the ref check
parent
45f08ed9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
loopy/auto_test.py
+9
-3
9 additions, 3 deletions
loopy/auto_test.py
loopy/diff.py
+0
-2
0 additions, 2 deletions
loopy/diff.py
with
9 additions
and
5 deletions
loopy/auto_test.py
+
9
−
3
View file @
430c5187
...
@@ -350,7 +350,7 @@ def _enumerate_cl_devices_for_ref_test():
...
@@ -350,7 +350,7 @@ def _enumerate_cl_devices_for_ref_test():
# {{{ main automatic testing entrypoint
# {{{ main automatic testing entrypoint
def
auto_test_vs_ref
(
def
auto_test_vs_ref
(
ref_knl
,
ctx
,
test_knl
,
op_count
=
[],
op_label
=
[],
parameters
=
{},
ref_knl
,
ctx
,
test_knl
=
None
,
op_count
=
[],
op_label
=
[],
parameters
=
{},
print_ref_code
=
False
,
print_code
=
True
,
warmup_rounds
=
2
,
print_ref_code
=
False
,
print_code
=
True
,
warmup_rounds
=
2
,
dump_binary
=
False
,
dump_binary
=
False
,
fills_entire_output
=
None
,
do_check
=
True
,
check_result
=
None
,
fills_entire_output
=
None
,
do_check
=
True
,
check_result
=
None
,
...
@@ -367,6 +367,10 @@ def auto_test_vs_ref(
...
@@ -367,6 +367,10 @@ def auto_test_vs_ref(
import
pyopencl
as
cl
import
pyopencl
as
cl
if
test_knl
is
None
:
test_knl
=
ref_knl
do_check
=
False
if
len
(
ref_knl
.
args
)
!=
len
(
test_knl
.
args
):
if
len
(
ref_knl
.
args
)
!=
len
(
test_knl
.
args
):
raise
LoopyError
(
"
ref_knl and test_knl do not have the same number
"
raise
LoopyError
(
"
ref_knl and test_knl do not have the same number
"
"
of arguments
"
)
"
of arguments
"
)
...
@@ -647,8 +651,10 @@ def auto_test_vs_ref(
...
@@ -647,8 +651,10 @@ def auto_test_vs_ref(
result_dict
[
"
elapsed_event_marker
"
]
=
elapsed_event_marker
result_dict
[
"
elapsed_event_marker
"
]
=
elapsed_event_marker
result_dict
[
"
elapsed_wall
"
]
=
elapsed_wall
result_dict
[
"
elapsed_wall
"
]
=
elapsed_wall
result_dict
[
"
timing_rounds
"
]
=
timing_rounds
result_dict
[
"
timing_rounds
"
]
=
timing_rounds
result_dict
[
"
ref_elapsed_event
"
]
=
ref_elapsed_event
result_dict
[
"
ref_elapsed_wall
"
]
=
ref_elapsed_wall
if
do_check
:
result_dict
[
"
ref_elapsed_event
"
]
=
ref_elapsed_event
result_dict
[
"
ref_elapsed_wall
"
]
=
ref_elapsed_wall
return
result_dict
return
result_dict
...
...
This diff is collapsed.
Click to expand it.
loopy/diff.py
+
0
−
2
View file @
430c5187
...
@@ -343,8 +343,6 @@ class DifferentiationContext(object):
...
@@ -343,8 +343,6 @@ class DifferentiationContext(object):
return
new_var_name
return
new_var_name
# }}}
# }}}
# }}}
...
...
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