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
Merge requests
!396
[BUGFIX] GPU slicing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[BUGFIX] GPU slicing
holzer/pystencils:FixGPUIndexing
into
master
Overview
0
Commits
3
Pipelines
3
Changes
1
Merged
Markus Holzer
requested to merge
holzer/pystencils:FixGPUIndexing
into
master
1 year ago
Overview
0
Commits
3
Pipelines
3
Changes
1
Expand
Fixes
#90 (closed)
0
0
Merge request reports
Viewing commit
b7205955
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b7205955
Fix remaining tests
· b7205955
Markus Holzer
authored
1 year ago
src/pystencils/gpu/indexing.py
+
1
−
1
Options
@@ -226,7 +226,7 @@ class BlockIndexing(AbstractIndexing):
end
=
[
s
.
stop
if
s
.
stop
!=
0
else
1
for
s
in
numeric_iteration_slice
]
for
i
,
s
in
enumerate
(
numeric_iteration_slice
):
if
s
.
step
and
s
.
step
!=
1
:
end
[
i
]
=
div_
floor
(
end
[
i
],
s
.
step
)
end
[
i
]
=
div_
ceil
(
s
.
stop
-
s
.
start
,
s
.
step
)
+
s
.
start
if
self
.
_dim
<
4
:
conditions
=
[
c
<
e
for
c
,
e
in
zip
(
self
.
coordinates
,
end
)]
Loading