pyopencl 2024.2.1__tar.gz → 2024.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyopencl might be problematic. Click here for more details.

Files changed (128) hide show
  1. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/PKG-INFO +1 -1
  2. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/contrib/cldis.py +1 -1
  3. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/version.py +1 -1
  4. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl.egg-info/PKG-INFO +1 -1
  5. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_cl.hpp +2 -2
  6. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_mempool.cpp +7 -0
  7. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_wrapper.py +11 -0
  8. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/CITATION.cff +0 -0
  9. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/CMakeLists.txt +0 -0
  10. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/LICENSE +0 -0
  11. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/MANIFEST.in +0 -0
  12. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/Makefile.in +0 -0
  13. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/README.rst +0 -0
  14. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/README_SETUP.txt +0 -0
  15. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/aksetup_helper.py +0 -0
  16. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/configure.py +0 -0
  17. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/contrib/fortran-to-opencl/README +0 -0
  18. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/contrib/fortran-to-opencl/translate.py +0 -0
  19. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/contrib/pyopencl.vim +0 -0
  20. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/Makefile +0 -0
  21. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/algorithm.rst +0 -0
  22. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/array.rst +0 -0
  23. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/conf.py +0 -0
  24. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/howto.rst +0 -0
  25. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/index.rst +0 -0
  26. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/make_constants.py +0 -0
  27. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/misc.rst +0 -0
  28. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime.rst +0 -0
  29. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime_const.rst +0 -0
  30. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime_gl.rst +0 -0
  31. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime_memory.rst +0 -0
  32. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime_platform.rst +0 -0
  33. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime_program.rst +0 -0
  34. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/runtime_queue.rst +0 -0
  35. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/subst.rst +0 -0
  36. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/tools.rst +0 -0
  37. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/doc/types.rst +0 -0
  38. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/black-hole-accretion.py +0 -0
  39. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo-struct-reduce.py +0 -0
  40. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo.py +0 -0
  41. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_array.py +0 -0
  42. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_array_svm.py +0 -0
  43. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_elementwise.py +0 -0
  44. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_elementwise_complex.py +0 -0
  45. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_mandelbrot.py +0 -0
  46. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_meta_codepy.py +0 -0
  47. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/demo_meta_template.py +0 -0
  48. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/dump-performance.py +0 -0
  49. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/dump-properties.py +0 -0
  50. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/gl_interop_demo.py +0 -0
  51. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/gl_particle_animation.py +0 -0
  52. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/ipython-demo.ipynb +0 -0
  53. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/median-filter.py +0 -0
  54. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/n-body.py +0 -0
  55. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/narray.py +0 -0
  56. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/noisyImage.jpg +0 -0
  57. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/pi-monte-carlo.py +0 -0
  58. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/svm.py +0 -0
  59. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/examples/transpose.py +0 -0
  60. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/__init__.py +0 -0
  61. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/_cluda.py +0 -0
  62. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/_mymako.py +0 -0
  63. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/algorithm.py +0 -0
  64. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/array.py +0 -0
  65. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/bitonic_sort.py +0 -0
  66. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/bitonic_sort_templates.py +0 -0
  67. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cache.py +0 -0
  68. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/capture_call.py +0 -0
  69. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/characterize/__init__.py +0 -0
  70. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/characterize/performance.py +0 -0
  71. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-airy.cl +0 -0
  72. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-bessel-j-complex.cl +0 -0
  73. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-bessel-j.cl +0 -0
  74. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-bessel-y.cl +0 -0
  75. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-complex.h +0 -0
  76. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-eval-tbl.cl +0 -0
  77. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-hankel-complex.cl +0 -0
  78. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-random123/array.h +0 -0
  79. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-random123/openclfeatures.h +0 -0
  80. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-random123/philox.cl +0 -0
  81. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cl/pyopencl-random123/threefry.cl +0 -0
  82. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/clmath.py +0 -0
  83. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/clrandom.py +0 -0
  84. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/cltypes.py +0 -0
  85. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/__init__.py +0 -0
  86. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/array.py +0 -0
  87. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/dtypes.py +0 -0
  88. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/ndarray/__init__.py +0 -0
  89. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/ndarray/gen_elemwise.py +0 -0
  90. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/ndarray/gen_reduction.py +0 -0
  91. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/ndarray/setup_opencl.py +0 -0
  92. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/ndarray/test_gpu_elemwise.py +0 -0
  93. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/compyte/ndarray/test_gpu_ndarray.py +0 -0
  94. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/elementwise.py +0 -0
  95. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/invoker.py +0 -0
  96. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/ipython_ext.py +0 -0
  97. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/reduction.py +0 -0
  98. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/scan.py +0 -0
  99. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl/tools.py +0 -0
  100. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl.egg-info/SOURCES.txt +0 -0
  101. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl.egg-info/dependency_links.txt +0 -0
  102. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl.egg-info/not-zip-safe +0 -0
  103. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl.egg-info/requires.txt +0 -0
  104. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyopencl.egg-info/top_level.txt +0 -0
  105. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pyproject.toml +0 -0
  106. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/pytest.ini +0 -0
  107. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/setup.cfg +0 -0
  108. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/setup.py +0 -0
  109. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/bitlog.cpp +0 -0
  110. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/bitlog.hpp +0 -0
  111. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/clinfo_ext.h +0 -0
  112. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/mempool.hpp +0 -0
  113. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/pyopencl_ext.h +0 -0
  114. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/tools.hpp +0 -0
  115. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_cl.cpp +0 -0
  116. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_cl_part_1.cpp +0 -0
  117. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_cl_part_2.cpp +0 -0
  118. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_constants.cpp +0 -0
  119. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/src/wrap_helpers.hpp +0 -0
  120. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/add-vectors-32.spv +0 -0
  121. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/add-vectors-64.spv +0 -0
  122. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/empty-header.h +0 -0
  123. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_algorithm.py +0 -0
  124. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_array.py +0 -0
  125. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_arrays_in_structs.py +0 -0
  126. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_clmath.py +0 -0
  127. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_clrandom.py +0 -0
  128. {pyopencl-2024.2.1 → pyopencl-2024.2.2}/test/test_enqueue_copy.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyopencl
3
- Version: 2024.2.1
3
+ Version: 2024.2.2
4
4
  Summary: Python wrapper for OpenCL
5
5
  Home-page: http://mathema.tician.de/software/pyopencl
6
6
  Author: Andreas Kloeckner
@@ -44,7 +44,7 @@ def main(ctx, tmp_dir, cl_str, output=None, build_options=[]):
44
44
  elif platform.name == "Portable Computing Language":
45
45
  if device.name.startswith("NVIDIA"):
46
46
  supported_outputs = ["ptx", "sass"]
47
- elif device.name.startswith("pthread") or device.name.startswith("cpu")
47
+ elif device.name.startswith("pthread") or device.name.startswith("cpu"):
48
48
  supported_outputs = ["asm"]
49
49
  else:
50
50
  raise NotImplementedError(f"Unknown pocl device '{device.name}'")
@@ -1,3 +1,3 @@
1
- VERSION = (2024, 2, 1)
1
+ VERSION = (2024, 2, 2)
2
2
  VERSION_STATUS = ""
3
3
  VERSION_TEXT = ".".join(str(x) for x in VERSION) + VERSION_STATUS
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyopencl
3
- Version: 2024.2.1
3
+ Version: 2024.2.2
4
4
  Summary: Python wrapper for OpenCL
5
5
  Home-page: http://mathema.tician.de/software/pyopencl
6
6
  Author: Andreas Kloeckner
@@ -555,8 +555,8 @@ namespace pyopencl
555
555
  private:
556
556
  bool m_initialized;
557
557
 
558
- public:
559
- Py_buffer m_buf;
558
+ public:
559
+ Py_buffer m_buf;
560
560
 
561
561
  py_buffer_wrapper()
562
562
  : m_initialized(false)
@@ -243,6 +243,13 @@ namespace pyopencl {
243
243
  {
244
244
  return m_size;
245
245
  }
246
+
247
+ // This shouldn't be necessary, but somehow nanobind gets unhappy if
248
+ // it's not there.
249
+ void free()
250
+ {
251
+ super::free();
252
+ }
246
253
  };
247
254
 
248
255
  // }}}
@@ -1543,6 +1543,17 @@ def test_zero_size_svm_allocations(ctx_factory):
1543
1543
  zero_sized_svm.release()
1544
1544
 
1545
1545
 
1546
+ def test_buffer_release(ctx_factory):
1547
+ ctx = ctx_factory()
1548
+ queue = cl.CommandQueue(ctx)
1549
+
1550
+ mem_pool = cl.tools.MemoryPool(cl.tools.ImmediateAllocator(queue))
1551
+
1552
+ b = mem_pool.allocate(1000)
1553
+ print(type(b))
1554
+ b.release()
1555
+
1556
+
1546
1557
  if __name__ == "__main__":
1547
1558
  import sys
1548
1559
  if len(sys.argv) > 1:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes