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
25d91704
Commit
25d91704
authored
Jun 17, 2020
by
Markus Holzer
Browse files
Fixed pycuda warning
parent
f888c012
Changes
2
Hide whitespace changes
Inline
Side-by-side
pystencils_tests/test_buffer_gpu.py
View file @
25d91704
...
...
@@ -39,7 +39,8 @@ def _generate_fields(dt=np.uint8, stencil_directions=1, layout='numpy'):
gpu_src_arr
=
gpuarray
.
to_gpu
(
src_arr
)
gpu_dst_arr
=
gpuarray
.
zeros_like
(
gpu_src_arr
)
gpu_buffer_arr
=
gpuarray
.
zeros
(
np
.
prod
(
src_arr
.
shape
),
dtype
=
dt
)
size
=
int
(
np
.
prod
(
src_arr
.
shape
))
gpu_buffer_arr
=
gpuarray
.
zeros
(
size
,
dtype
=
dt
)
fields
.
append
((
src_arr
,
gpu_src_arr
,
gpu_dst_arr
,
gpu_buffer_arr
))
return
fields
...
...
pytest.ini
View file @
25d91704
...
...
@@ -39,7 +39,7 @@ exclude_lines =
if
__name__
=
= .__main__.:
skip_covered
=
True
fail_under
=
7
4
fail_under
=
7
5
[html]
directory
=
coverage_report
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