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
140a52c3
Commit
140a52c3
authored
10 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix C code mapper invocations
parent
300c6960
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
loopy/codegen/instruction.py
+1
-1
1 addition, 1 deletion
loopy/codegen/instruction.py
loopy/preprocess.py
+2
-2
2 additions, 2 deletions
loopy/preprocess.py
with
3 additions
and
3 deletions
loopy/codegen/instruction.py
+
1
−
1
View file @
140a52c3
...
...
@@ -176,7 +176,7 @@ def generate_c_instruction_code(kernel, insn, codegen_state):
Initializer
(
POD
(
kernel
.
index_dtype
,
name
),
codegen_state
.
c_code_mapper
(
iname_expr
,
prec
=
None
,
type_context
=
"
i
"
)))
iname_expr
,
prec
=
PREC_NONE
,
type_context
=
"
i
"
)))
if
body
:
body
.
append
(
Line
())
...
...
This diff is collapsed.
Click to expand it.
loopy/preprocess.py
+
2
−
2
View file @
140a52c3
...
...
@@ -24,7 +24,7 @@ THE SOFTWARE.
import
six
from
six.moves
import
range
,
zip
from
six.moves
import
range
import
numpy
as
np
import
pyopencl
as
cl
import
pyopencl.characterize
as
cl_char
...
...
@@ -471,7 +471,7 @@ def realize_reduction(kernel, insn_id_filter=None):
insn
=
insn
.
copy
(
expression
=
new_expression
,
insn_deps
=
insn
.
insn_deps
|
frozenset
(
new_insn_insn_deps
),
|
frozenset
(
new_insn_insn_deps
),
forced_iname_deps
=
temp_kernel
.
insn_inames
(
insn
))
insn_queue
=
generated_insns
+
[
insn
]
+
insn_queue
...
...
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