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
045b9c66
Commit
045b9c66
authored
3 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Fix docstring
parent
3e3b90bc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/sphinx/kernel_compile_and_call.rst
+3
-3
3 additions, 3 deletions
doc/sphinx/kernel_compile_and_call.rst
pystencils/config.py
+10
-8
10 additions, 8 deletions
pystencils/config.py
with
13 additions
and
11 deletions
doc/sphinx/kernel_compile_and_call.rst
+
3
−
3
View file @
045b9c66
...
...
@@ -11,11 +11,11 @@ Creating kernels
.. autoclass:: pystencils.CreateKernelConfig
:members:
.. autofunction:: pystencils.create_domain_kernel
.. autofunction:: pystencils.
kernelcreation.
create_domain_kernel
.. autofunction:: pystencils.create_indexed_kernel
.. autofunction:: pystencils.
kernelcreation.
create_indexed_kernel
.. autofunction:: pystencils.create_staggered_kernel
.. autofunction:: pystencils.
kernelcreation.
create_staggered_kernel
Code printing
...
...
This diff is collapsed.
Click to expand it.
pystencils/config.py
+
10
−
8
View file @
045b9c66
...
...
@@ -75,23 +75,25 @@ class CreateKernelConfig:
"""
gpu_indexing
:
str
=
'
block
'
"""
Either
'
block
'
or
'
line
'
, or custom indexing class, see `AbstractIndexing`
Either
'
block
'
or
'
line
'
, or custom indexing class, see `
pystencils.gpucuda.
AbstractIndexing`
"""
gpu_indexing_params
:
MappingProxyType
=
field
(
default
=
MappingProxyType
({}))
"""
Dict with indexing parameters (constructor parameters of indexing class)
e.g. for
'
block
'
one can specify
'
{
'
block_size
'
: (20, 20, 10) }
'
.
"""
# TODO rework this docstring
default_assignment_simplifications
:
bool
=
False
"""
If `True` default simplifications are first performed on the Assignments. If problems occur during the
simplification a warning will be thrown.
Furthermore, it is essential to know that this is a two-stage process. The first stage of the process acts
on the level of the `AssignmentCollection`. In this part, `create_simplification_strategy`
from pystencils.simplificationfactory will be used to apply optimisations like insertion of constants to
remove pressure from the registers. Thus the first part of the optimisations can only be executed if
an `AssignmentCollection` is passed. The second part of the optimisation acts on the level of each Assignment
individually. In this stage, all optimisations from `sympy.codegen.rewriting.optims_c99` are applied
simplification a warning will be thrown.
Furthermore, it is essential to know that this is a two-stage process. The first stage of the process acts
on the level of the `pystencils.AssignmentCollection`. In this part,
`pystencil.simp.create_simplification_strategy` from pystencils.simplificationfactory will be used to
apply optimisations like insertion of constants to
remove pressure from the registers. Thus the first part of the optimisations can only be executed if
an `AssignmentCollection` is passed. The second part of the optimisation acts on the level of each Assignment
individually. In this stage, all optimisations from `sympy.codegen.rewriting.optims_c99` are applied
to each Assignment. Thus this stage can also be applied if a list of Assignments is passed.
"""
cpu_prepend_optimizations
:
List
[
Callable
]
=
field
(
default_factory
=
list
)
...
...
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