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
Wiki
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
Ben Sepanski
loopy
Commits
2e688ada
Commit
2e688ada
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Diagnostic message shuffling to support doctests
parent
e410aebb
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
loopy/__init__.py
+3
-1
3 additions, 1 deletion
loopy/__init__.py
loopy/diagnostic.py
+2
-2
2 additions, 2 deletions
loopy/diagnostic.py
loopy/target/pyopencl/__init__.py
+3
-3
3 additions, 3 deletions
loopy/target/pyopencl/__init__.py
with
8 additions
and
6 deletions
loopy/__init__.py
+
3
−
1
View file @
2e688ada
...
...
@@ -32,7 +32,7 @@ from islpy import dim_type
from
loopy.symbolic
import
(
RuleAwareIdentityMapper
,
RuleAwareSubstitutionMapper
,
SubstitutionRuleMappingContext
,
TaggedVariable
,
Reduction
,
LinearSubscript
,
)
from
loopy.diagnostic
import
LoopyError
from
loopy.diagnostic
import
LoopyError
,
LoopyWarning
# {{{ imported user interface
...
...
@@ -111,6 +111,8 @@ __all__ = [
"
make_kernel
"
,
"
c_preprocess
"
,
"
parse_transformed_fortran
"
,
"
parse_fortran
"
,
"
LoopyError
"
,
"
LoopyWarning
"
,
# {{{ from this file
"
split_iname
"
,
"
join_inames
"
,
"
tag_inames
"
,
"
duplicate_inames
"
,
...
...
This diff is collapsed.
Click to expand it.
loopy/diagnostic.py
+
2
−
2
View file @
2e688ada
...
...
@@ -37,11 +37,11 @@ class LoopyAdvisory(LoopyWarningBase):
pass
class
ParameterFinderWarning
(
LoopyWarning
Base
):
class
ParameterFinderWarning
(
LoopyWarning
):
pass
class
WriteRaceConditionWarning
(
LoopyWarning
Base
):
class
WriteRaceConditionWarning
(
LoopyWarning
):
pass
# }}}
...
...
This diff is collapsed.
Click to expand it.
loopy/target/pyopencl/__init__.py
+
3
−
3
View file @
2e688ada
...
...
@@ -125,16 +125,16 @@ def adjust_local_temp_var_storage(kernel, device):
def
check_sizes
(
kernel
,
device
):
import
loopy
as
lp
from
loopy.diagnostic
import
LoopyAdvisory
,
LoopyError
if
device
is
None
:
from
loopy.diagnostic
import
warn
warn
(
kernel
,
"
no_device_in_pre_codegen_checks
"
,
"
No device parameter was passed to the PyOpenCLTarget.
"
"
Perhaps you want to pass a device to benefit from
"
"
additional checking.
"
)
"
additional checking.
"
,
LoopyAdvisory
)
return
from
loopy.diagnostic
import
LoopyAdvisory
,
LoopyError
parameters
=
{}
for
arg
in
kernel
.
args
:
if
isinstance
(
arg
,
lp
.
ValueArg
)
and
arg
.
approximately
is
not
None
:
...
...
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