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
8e6e15bb
Commit
8e6e15bb
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: Readd __launch_bounds__ for dialect 'cuda'
parent
db2e9f13
No related branches found
No related tags found
1 merge request
!32
Bugfix: Readd __launch_bounds__ for dialect 'cuda'
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/backends/cbackend.py
+1
-1
1 addition, 1 deletion
pystencils/backends/cbackend.py
with
1 addition
and
1 deletion
pystencils/backends/cbackend.py
+
1
−
1
View file @
8e6e15bb
...
@@ -174,7 +174,7 @@ class CBackend:
...
@@ -174,7 +174,7 @@ class CBackend:
def
_print_KernelFunction
(
self
,
node
):
def
_print_KernelFunction
(
self
,
node
):
function_arguments
=
[
"
%s %s
"
%
(
str
(
s
.
symbol
.
dtype
),
s
.
symbol
.
name
)
for
s
in
node
.
get_parameters
()]
function_arguments
=
[
"
%s %s
"
%
(
str
(
s
.
symbol
.
dtype
),
s
.
symbol
.
name
)
for
s
in
node
.
get_parameters
()]
launch_bounds
=
""
launch_bounds
=
""
if
self
.
_
_class__
==
'
cuda
'
:
if
self
.
_
dialect
==
'
cuda
'
:
max_threads
=
node
.
indexing
.
max_threads_per_block
()
max_threads
=
node
.
indexing
.
max_threads_per_block
()
if
max_threads
:
if
max_threads
:
launch_bounds
=
"
__launch_bounds__({})
"
.
format
(
max_threads
)
launch_bounds
=
"
__launch_bounds__({})
"
.
format
(
max_threads
)
...
...
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