Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
8e6e15bb
Commit
8e6e15bb
authored
Aug 14, 2019
by
Stephan Seitz
Browse files
Bugfix: Readd __launch_bounds__ for dialect 'cuda'
parent
db2e9f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/backends/cbackend.py
View file @
8e6e15bb
...
...
@@ -174,7 +174,7 @@ class CBackend:
def
_print_KernelFunction
(
self
,
node
):
function_arguments
=
[
"%s %s"
%
(
str
(
s
.
symbol
.
dtype
),
s
.
symbol
.
name
)
for
s
in
node
.
get_parameters
()]
launch_bounds
=
""
if
self
.
_
_class__
==
'cuda'
:
if
self
.
_
dialect
==
'cuda'
:
max_threads
=
node
.
indexing
.
max_threads_per_block
()
if
max_threads
:
launch_bounds
=
"__launch_bounds__({}) "
.
format
(
max_threads
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment