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
Stephan Seitz
pystencils
Commits
df7f69df
Commit
df7f69df
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix!!!
parent
354877bb
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#20671
passed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pystencils/datahandling/graph_datahandling.py
+2
-2
2 additions, 2 deletions
pystencils/datahandling/graph_datahandling.py
pystencils/kernelcreation.py
+3
-3
3 additions, 3 deletions
pystencils/kernelcreation.py
with
5 additions
and
5 deletions
pystencils/datahandling/graph_datahandling.py
+
2
−
2
View file @
df7f69df
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
"""
"""
"""
"""
from
enum
import
Enum
from
enum
import
Enum
import
numpy
as
np
import
numpy
as
np
import
pystencils.datahandling
import
pystencils.datahandling
import
pystencils.kernel_wrapper
import
pystencils.kernel_wrapper
import
pystencils.timeloop
from
pystencils.field
import
FieldType
from
pystencils.field
import
FieldType
...
@@ -181,7 +181,7 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling):
...
@@ -181,7 +181,7 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling):
def
synchronization_function
(
self
,
names
,
stencil
=
None
,
target
=
None
,
**
_
):
def
synchronization_function
(
self
,
names
,
stencil
=
None
,
target
=
None
,
**
_
):
for
name
in
names
:
for
name
in
names
:
gpu
=
target
==
'
c
pu
'
gpu
=
target
==
'
g
pu
'
self
.
call_queue
.
append
(
Communication
(
self
.
_fields
[
name
],
stencil
,
gpu
))
self
.
call_queue
.
append
(
Communication
(
self
.
_fields
[
name
],
stencil
,
gpu
))
super
().
synchronization_function
(
names
,
stencil
=
None
,
target
=
None
,
**
_
)
super
().
synchronization_function
(
names
,
stencil
=
None
,
target
=
None
,
**
_
)
...
...
This diff is collapsed.
Click to expand it.
pystencils/kernelcreation.py
+
3
−
3
View file @
df7f69df
...
@@ -76,9 +76,9 @@ def create_kernel(assignments,
...
@@ -76,9 +76,9 @@ def create_kernel(assignments,
[
0.
,
4.
,
4.
,
4.
,
0.
],
[
0.
,
4.
,
4.
,
4.
,
0.
],
[
0.
,
0.
,
0.
,
0.
,
0.
]])
[
0.
,
0.
,
0.
,
0.
,
0.
]])
"""
"""
#save the original assignments
#
save the original assignments
assign
=
assignments
assign
=
assignments
# ---- Normalizing parameters
# ---- Normalizing parameters
split_groups
=
()
split_groups
=
()
if
isinstance
(
assignments
,
AssignmentCollection
):
if
isinstance
(
assignments
,
AssignmentCollection
):
...
@@ -187,7 +187,7 @@ def create_indexed_kernel(assignments,
...
@@ -187,7 +187,7 @@ def create_indexed_kernel(assignments,
"""
"""
assign
=
assignments
assign
=
assignments
indF
=
index_fields
indF
=
index_fields
if
isinstance
(
assignments
,
Assignment
):
if
isinstance
(
assignments
,
Assignment
):
assignments
=
[
assignments
]
assignments
=
[
assignments
]
elif
isinstance
(
assignments
,
AssignmentCollection
):
elif
isinstance
(
assignments
,
AssignmentCollection
):
...
...
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