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
3e1f6114
Commit
3e1f6114
authored
1 year ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
fix linter
parent
f1b67103
No related branches found
No related tags found
2 merge requests
!353
Draft: Generalise usage of Structs for nested array access
,
!341
Refactor gpu indexing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/gpu/indexing.py
+4
-1
4 additions, 1 deletion
pystencils/gpu/indexing.py
with
4 additions
and
1 deletion
pystencils/gpu/indexing.py
+
4
−
1
View file @
3e1f6114
...
...
@@ -42,6 +42,9 @@ class AbstractIndexing(abc.ABC):
"""
def
__init__
(
self
,
iteration_space
:
Tuple
[
slice
],
data_layout
:
Tuple
):
for
iter_space
in
iteration_space
:
assert
isinstance
(
iter_space
,
slice
),
f
"
iteration_space must be of type Tuple[slice],
"
\
f
"
not tuple of type
{
type
(
iter_space
)
}
"
self
.
_iteration_space
=
iteration_space
self
.
_data_layout
=
data_layout
self
.
_dim
=
len
(
iteration_space
)
...
...
@@ -270,7 +273,7 @@ class LineIndexing(AbstractIndexing):
data_layout: tuple to determine the fast and slow coordinates.
"""
def
__init__
(
self
,
iteration_space
:
Tuple
[
slice
],
data_layout
:
Tuple
):
def
__init__
(
self
,
iteration_space
:
Tuple
[
slice
],
data_layout
:
Tuple
):
super
(
LineIndexing
,
self
).
__init__
(
iteration_space
,
data_layout
)
if
len
(
iteration_space
)
>
4
:
...
...
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