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
Stephan Seitz
pystencils
Commits
637684c1
Commit
637684c1
authored
Dec 05, 2019
by
Stephan Seitz
Browse files
Fix OpenCL for CUDA OpenCL by avoid int(...) constructor
Prefer c-style cast instead.
parent
296de5db
Pipeline
#20271
passed with stage
in 22 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/backends/opencl_backend.py
View file @
637684c1
...
...
@@ -73,7 +73,7 @@ class OpenClSympyPrinter(CudaSympyPrinter):
function_name
,
dimension
=
tuple
(
symbol_name
.
split
(
"."
))
dimension
=
self
.
DIMENSION_MAPPING
[
dimension
]
function_name
=
self
.
INDEXING_FUNCTION_MAPPING
[
function_name
]
return
f
"int
(
{
function_name
}
(
{
dimension
}
)
)
"
return
f
"
(
int
)
{
function_name
}
(
{
dimension
}
)"
def
_print_TextureAccess
(
self
,
node
):
raise
NotImplementedError
()
...
...
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