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
Markus Holzer
pystencils
Commits
424a20ea
Commit
424a20ea
authored
3 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Fix linter
parent
1065a1ee
No related branches found
No related tags found
No related merge requests found
Pipeline
#32520
passed
3 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pystencils/boundaries/boundaryhandling.py
+0
-1
0 additions, 1 deletion
pystencils/boundaries/boundaryhandling.py
pystencils/cpu/kernelcreation.py
+1
-1
1 addition, 1 deletion
pystencils/cpu/kernelcreation.py
pystencils/gpucuda/kernelcreation.py
+1
-1
1 addition, 1 deletion
pystencils/gpucuda/kernelcreation.py
with
2 additions
and
3 deletions
pystencils/boundaries/boundaryhandling.py
+
0
−
1
View file @
424a20ea
...
@@ -444,7 +444,6 @@ class BoundaryOffsetInfo(CustomCodeNode):
...
@@ -444,7 +444,6 @@ class BoundaryOffsetInfo(CustomCodeNode):
def
create_boundary_kernel
(
field
,
index_field
,
stencil
,
boundary_functor
,
target
=
'
cpu
'
,
**
kernel_creation_args
):
def
create_boundary_kernel
(
field
,
index_field
,
stencil
,
boundary_functor
,
target
=
'
cpu
'
,
**
kernel_creation_args
):
elements
=
[
BoundaryOffsetInfo
(
stencil
)]
elements
=
[
BoundaryOffsetInfo
(
stencil
)]
index_arr_dtype
=
index_field
.
dtype
.
numpy_dtype
dir_symbol
=
TypedSymbol
(
"
dir
"
,
np
.
int64
)
dir_symbol
=
TypedSymbol
(
"
dir
"
,
np
.
int64
)
elements
+=
[
Assignment
(
dir_symbol
,
index_field
[
0
](
'
dir
'
))]
elements
+=
[
Assignment
(
dir_symbol
,
index_field
[
0
](
'
dir
'
))]
elements
+=
boundary_functor
(
field
,
direction_symbol
=
dir_symbol
,
index_field
=
index_field
)
elements
+=
boundary_functor
(
field
,
direction_symbol
=
dir_symbol
,
index_field
=
index_field
)
...
...
This diff is collapsed.
Click to expand it.
pystencils/cpu/kernelcreation.py
+
1
−
1
View file @
424a20ea
...
@@ -7,7 +7,7 @@ import pystencils.astnodes as ast
...
@@ -7,7 +7,7 @@ import pystencils.astnodes as ast
from
pystencils.assignment
import
Assignment
from
pystencils.assignment
import
Assignment
from
pystencils.astnodes
import
Block
,
KernelFunction
,
LoopOverCoordinate
,
SympyAssignment
from
pystencils.astnodes
import
Block
,
KernelFunction
,
LoopOverCoordinate
,
SympyAssignment
from
pystencils.cpu.cpujit
import
make_python_function
from
pystencils.cpu.cpujit
import
make_python_function
from
pystencils.data_types
import
BasicType
,
StructType
,
TypedSymbol
,
create_type
from
pystencils.data_types
import
StructType
,
TypedSymbol
,
create_type
from
pystencils.field
import
Field
,
FieldType
from
pystencils.field
import
Field
,
FieldType
from
pystencils.transformations
import
(
from
pystencils.transformations
import
(
add_types
,
filtered_tree_iteration
,
get_base_buffer_index
,
get_optimal_loop_ordering
,
add_types
,
filtered_tree_iteration
,
get_base_buffer_index
,
get_optimal_loop_ordering
,
...
...
This diff is collapsed.
Click to expand it.
pystencils/gpucuda/kernelcreation.py
+
1
−
1
View file @
424a20ea
import
numpy
as
np
import
numpy
as
np
from
pystencils.astnodes
import
Block
,
KernelFunction
,
LoopOverCoordinate
,
SympyAssignment
from
pystencils.astnodes
import
Block
,
KernelFunction
,
LoopOverCoordinate
,
SympyAssignment
from
pystencils.data_types
import
BasicType
,
StructType
,
TypedSymbol
from
pystencils.data_types
import
StructType
,
TypedSymbol
from
pystencils.field
import
Field
,
FieldType
from
pystencils.field
import
Field
,
FieldType
from
pystencils.gpucuda.cudajit
import
make_python_function
from
pystencils.gpucuda.cudajit
import
make_python_function
from
pystencils.gpucuda.indexing
import
BlockIndexing
from
pystencils.gpucuda.indexing
import
BlockIndexing
...
...
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