Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
96b5cbf2
Commit
96b5cbf2
authored
6 months ago
by
Richard Angersbach
Browse files
Options
Downloads
Patches
Plain Diff
Fix lint
parent
f0d2fde6
No related branches found
No related tags found
1 merge request
!438
Reduction Support
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pystencils/backend/kernelcreation/freeze.py
+2
-3
2 additions, 3 deletions
src/pystencils/backend/kernelcreation/freeze.py
src/pystencils/codegen/driver.py
+1
-1
1 addition, 1 deletion
src/pystencils/codegen/driver.py
with
3 additions
and
4 deletions
src/pystencils/backend/kernelcreation/freeze.py
+
2
−
3
View file @
96b5cbf2
from
typing
import
overload
,
cast
,
Any
from
functools
import
reduce
from
operator
import
add
,
mul
,
sub
,
truediv
from
operator
import
add
,
mul
,
sub
import
sympy
as
sp
import
sympy.core.relational
import
sympy.logic.boolalg
from
sympy.codegen.ast
import
AssignmentBase
,
AugmentedAssignment
...
...
@@ -184,7 +183,7 @@ class FreezeExpressions:
assert
isinstance
(
lhs
,
PsSymbolExpr
)
orig_lhs_symb
=
lhs
.
symbol
dtype
=
rhs
.
dtype
# TODO: kernel with (implicit) up/downcasts?
dtype
=
rhs
.
dtype
# TODO: kernel with (implicit) up/downcasts?
# replace original symbol with pointer-based type used for export
orig_lhs_symb_as_ptr
=
PsSymbol
(
orig_lhs_symb
.
name
,
PsPointerType
(
dtype
))
...
...
This diff is collapsed.
Click to expand it.
src/pystencils/codegen/driver.py
+
1
−
1
View file @
96b5cbf2
...
...
@@ -7,7 +7,7 @@ from .config import CreateKernelConfig, OpenMpConfig, VectorizationConfig, AUTO
from
.kernel
import
Kernel
,
GpuKernel
,
GpuThreadsRange
from
.properties
import
PsSymbolProperty
,
FieldShape
,
FieldStride
,
FieldBasePtr
,
ReductionPointerVariable
from
.parameters
import
Parameter
from
..backend.ast.expressions
import
PsSymbolExpr
,
PsMemAcc
,
PsConstantExpr
,
PsExpression
from
..backend.ast.expressions
import
PsSymbolExpr
,
PsMemAcc
,
PsConstantExpr
from
..sympyextensions.binop_mapping
import
binop_str_to_expr
from
..types
import
create_numeric_type
,
PsIntegerType
,
PsScalarType
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
4e688b86
·
3 months ago
mentioned in commit
4e688b86
mentioned in commit 4e688b867339c90a6fba3ad12c383d1e59211ed9
Toggle commit list
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