Skip to content
Snippets Groups Projects

pytest_generate_tests_for_pyopencl(): Remove use of deprecated

Merged Matt Wala requested to merge remove-metafunc-addcall into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -64,7 +64,7 @@ the device:
>>> ary_host["field1"].fill(217)
>>> ary_host["field2"].fill(1000)
>>> ary_host[13]["field2"] = 12
>>> print(ary_host)
>>> print(ary_host) #doctest: +NORMALIZE_WHITESPACE
[(217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.)
(217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.)
(217, 1000.) (217, 1000.) (217, 1000.) (217, 12.) (217, 1000.)
@@ -98,7 +98,7 @@ as well as with PyOpenCL's built-in operations:
>>> elwise = ElementwiseKernel(ctx, "my_struct *a", "a[i].field1 = 2;",
... preamble=my_struct_c_decl)
>>> evt = elwise(ary)
>>> print(ary)
>>> print(ary) #doctest: +NORMALIZE_WHITESPACE
[(2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.)
(2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.)
(2, 1000.) (2, 12.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.)
Loading