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
428424d1
Commit
428424d1
authored
11 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
fix default arg
parent
95907f7b
No related branches found
No related tags found
1 merge request
!384
Fundamental GPU Support
Pipeline
#67160
passed
11 months ago
Stage: Code Quality
Stage: Unit Tests
Stage: legacy_test
Stage: docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pystencils/backend/platforms/cuda.py
+1
-1
1 addition, 1 deletion
src/pystencils/backend/platforms/cuda.py
tests/nbackend/kernelcreation/platform/test_basic_gpu.py
+1
-1
1 addition, 1 deletion
tests/nbackend/kernelcreation/platform/test_basic_gpu.py
with
2 additions
and
2 deletions
src/pystencils/backend/platforms/cuda.py
+
1
−
1
View file @
428424d1
...
...
@@ -37,7 +37,7 @@ GRID_DIM = [
class
CudaPlatform
(
GenericGpu
):
def
__init__
(
self
,
ctx
:
KernelCreationContext
,
indexing_cfg
:
GpuIndexingConfig
|
None
self
,
ctx
:
KernelCreationContext
,
indexing_cfg
:
GpuIndexingConfig
|
None
=
None
)
->
None
:
super
().
__init__
(
ctx
)
self
.
_cfg
=
indexing_cfg
if
indexing_cfg
is
not
None
else
GpuIndexingConfig
()
...
...
This diff is collapsed.
Click to expand it.
tests/nbackend/kernelcreation/platform/test_basic_gpu.py
+
1
−
1
View file @
428424d1
...
...
@@ -25,4 +25,4 @@ def test_loop_nest(layout):
archetype_field
=
Field
.
create_generic
(
"
fzyx_field
"
,
spatial_dimensions
=
3
,
layout
=
layout
)
ispace
=
FullIterationSpace
.
create_with_ghost_layers
(
ctx
,
0
,
archetype_field
)
condition
=
platform
.
materialize_iteration_space
(
body
,
ispace
)
_
=
platform
.
materialize_iteration_space
(
body
,
ispace
)
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