pyopencl 2024.2__tar.gz → 2024.2.1__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/CMakeLists.txt +83 -0
  2. {pyopencl-2024.2 → pyopencl-2024.2.1}/MANIFEST.in +2 -0
  3. {pyopencl-2024.2 → pyopencl-2024.2.1}/PKG-INFO +1 -1
  4. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/version.py +1 -1
  5. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/PKG-INFO +1 -1
  6. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/SOURCES.txt +1 -0
  7. {pyopencl-2024.2 → pyopencl-2024.2.1}/CITATION.cff +0 -0
  8. {pyopencl-2024.2 → pyopencl-2024.2.1}/LICENSE +0 -0
  9. {pyopencl-2024.2 → pyopencl-2024.2.1}/Makefile.in +0 -0
  10. {pyopencl-2024.2 → pyopencl-2024.2.1}/README.rst +0 -0
  11. {pyopencl-2024.2 → pyopencl-2024.2.1}/README_SETUP.txt +0 -0
  12. {pyopencl-2024.2 → pyopencl-2024.2.1}/aksetup_helper.py +0 -0
  13. {pyopencl-2024.2 → pyopencl-2024.2.1}/configure.py +0 -0
  14. {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/cldis.py +0 -0
  15. {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/fortran-to-opencl/README +0 -0
  16. {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/fortran-to-opencl/translate.py +0 -0
  17. {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/pyopencl.vim +0 -0
  18. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/Makefile +0 -0
  19. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/algorithm.rst +0 -0
  20. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/array.rst +0 -0
  21. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/conf.py +0 -0
  22. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/howto.rst +0 -0
  23. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/index.rst +0 -0
  24. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/make_constants.py +0 -0
  25. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/misc.rst +0 -0
  26. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime.rst +0 -0
  27. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_const.rst +0 -0
  28. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_gl.rst +0 -0
  29. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_memory.rst +0 -0
  30. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_platform.rst +0 -0
  31. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_program.rst +0 -0
  32. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_queue.rst +0 -0
  33. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/subst.rst +0 -0
  34. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/tools.rst +0 -0
  35. {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/types.rst +0 -0
  36. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/black-hole-accretion.py +0 -0
  37. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo-struct-reduce.py +0 -0
  38. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo.py +0 -0
  39. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_array.py +0 -0
  40. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_array_svm.py +0 -0
  41. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_elementwise.py +0 -0
  42. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_elementwise_complex.py +0 -0
  43. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_mandelbrot.py +0 -0
  44. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_meta_codepy.py +0 -0
  45. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_meta_template.py +0 -0
  46. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/dump-performance.py +0 -0
  47. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/dump-properties.py +0 -0
  48. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/gl_interop_demo.py +0 -0
  49. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/gl_particle_animation.py +0 -0
  50. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/ipython-demo.ipynb +0 -0
  51. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/median-filter.py +0 -0
  52. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/n-body.py +0 -0
  53. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/narray.py +0 -0
  54. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/noisyImage.jpg +0 -0
  55. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/pi-monte-carlo.py +0 -0
  56. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/svm.py +0 -0
  57. {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/transpose.py +0 -0
  58. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/__init__.py +0 -0
  59. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/_cluda.py +0 -0
  60. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/_mymako.py +0 -0
  61. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/algorithm.py +0 -0
  62. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/array.py +0 -0
  63. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/bitonic_sort.py +0 -0
  64. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/bitonic_sort_templates.py +0 -0
  65. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cache.py +0 -0
  66. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/capture_call.py +0 -0
  67. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/characterize/__init__.py +0 -0
  68. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/characterize/performance.py +0 -0
  69. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-airy.cl +0 -0
  70. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-bessel-j-complex.cl +0 -0
  71. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-bessel-j.cl +0 -0
  72. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-bessel-y.cl +0 -0
  73. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-complex.h +0 -0
  74. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-eval-tbl.cl +0 -0
  75. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-hankel-complex.cl +0 -0
  76. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/array.h +0 -0
  77. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/openclfeatures.h +0 -0
  78. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/philox.cl +0 -0
  79. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/threefry.cl +0 -0
  80. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/clmath.py +0 -0
  81. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/clrandom.py +0 -0
  82. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cltypes.py +0 -0
  83. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/__init__.py +0 -0
  84. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/array.py +0 -0
  85. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/dtypes.py +0 -0
  86. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/__init__.py +0 -0
  87. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/gen_elemwise.py +0 -0
  88. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/gen_reduction.py +0 -0
  89. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/setup_opencl.py +0 -0
  90. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/test_gpu_elemwise.py +0 -0
  91. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/test_gpu_ndarray.py +0 -0
  92. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/elementwise.py +0 -0
  93. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/invoker.py +0 -0
  94. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/ipython_ext.py +0 -0
  95. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/reduction.py +0 -0
  96. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/scan.py +0 -0
  97. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/tools.py +0 -0
  98. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/dependency_links.txt +0 -0
  99. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/not-zip-safe +0 -0
  100. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/requires.txt +0 -0
  101. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/top_level.txt +0 -0
  102. {pyopencl-2024.2 → pyopencl-2024.2.1}/pyproject.toml +0 -0
  103. {pyopencl-2024.2 → pyopencl-2024.2.1}/pytest.ini +0 -0
  104. {pyopencl-2024.2 → pyopencl-2024.2.1}/setup.cfg +0 -0
  105. {pyopencl-2024.2 → pyopencl-2024.2.1}/setup.py +0 -0
  106. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/bitlog.cpp +0 -0
  107. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/bitlog.hpp +0 -0
  108. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/clinfo_ext.h +0 -0
  109. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/mempool.hpp +0 -0
  110. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/pyopencl_ext.h +0 -0
  111. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/tools.hpp +0 -0
  112. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl.cpp +0 -0
  113. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl.hpp +0 -0
  114. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl_part_1.cpp +0 -0
  115. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl_part_2.cpp +0 -0
  116. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_constants.cpp +0 -0
  117. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_helpers.hpp +0 -0
  118. {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_mempool.cpp +0 -0
  119. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/add-vectors-32.spv +0 -0
  120. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/add-vectors-64.spv +0 -0
  121. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/empty-header.h +0 -0
  122. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_algorithm.py +0 -0
  123. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_array.py +0 -0
  124. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_arrays_in_structs.py +0 -0
  125. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_clmath.py +0 -0
  126. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_clrandom.py +0 -0
  127. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_enqueue_copy.py +0 -0
  128. {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_wrapper.py +0 -0
@@ -0,0 +1,83 @@
1
+ cmake_minimum_required(VERSION 3.17...3.22)
2
+
3
+ project(pyopencl)
4
+
5
+ if (NOT SKBUILD)
6
+ message(FATAL_ERROR "This CMake file should be executed via scikit-build. "
7
+ "Please run\n$ pip install .")
8
+ endif()
9
+
10
+ # {{{ Constrain FindPython to find the Python version used by scikit-build
11
+
12
+ if (SKBUILD)
13
+ message(STATUS "Python_VERSION ${PYTHON_VERSION_STRING}")
14
+ message(STATUS "Python_EXECUTABLE ${PYTHON_EXECUTABLE}")
15
+ message(STATUS "Python_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}")
16
+ message(STATUS "Python_LIBRARIES ${PYTHON_LIBRARY}")
17
+ set(Python_VERSION "${PYTHON_VERSION_STRING}")
18
+ set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}")
19
+ set(Python_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}")
20
+ set(Python_LIBRARIES "${PYTHON_LIBRARY}")
21
+ endif()
22
+ find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
23
+
24
+ # }}}
25
+
26
+ # {{{ Detect nanobind and import it
27
+
28
+ execute_process(
29
+ COMMAND
30
+ "${PYTHON_EXECUTABLE}" -c "import nanobind; print(nanobind.cmake_dir())"
31
+ OUTPUT_VARIABLE _tmp_dir
32
+ OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ECHO STDOUT)
33
+ list(APPEND CMAKE_PREFIX_PATH "${_tmp_dir}")
34
+
35
+ # }}}
36
+
37
+ link_directories(${PYOPENCL_CL_LIB_DIRS})
38
+
39
+ find_package(nanobind CONFIG REQUIRED)
40
+ find_package(NumPy REQUIRED)
41
+ find_package(OpenCL REQUIRED)
42
+
43
+ include_directories(${OpenCL_INCLUDE_DIR} ${NumPy_INCLUDE_DIRS})
44
+
45
+ nanobind_add_module(
46
+ _cl
47
+ NB_STATIC # Build static libnanobind (the extension module itself remains a shared library)
48
+ src/wrap_constants.cpp
49
+ src/wrap_cl.cpp
50
+ src/wrap_cl_part_1.cpp
51
+ src/wrap_cl_part_2.cpp
52
+ src/wrap_mempool.cpp
53
+ src/bitlog.cpp
54
+ )
55
+
56
+ target_link_libraries(_cl PRIVATE ${OpenCL_LIBRARY})
57
+
58
+ target_compile_definitions(_cl
59
+ PRIVATE
60
+ PYGPU_PACKAGE=pyopencl
61
+ PYGPU_PYOPENCL
62
+ )
63
+
64
+ if (PYOPENCL_PRETEND_CL_VERSION)
65
+ target_compile_definitions(
66
+ _cl PRIVATE PYOPENCL_PRETEND_CL_VERSION=${PYOPENCL_PRETEND_CL_VERSION})
67
+ endif()
68
+
69
+ if (PYOPENCL_ENABLE_GL)
70
+ target_compile_definitions(_cl PRIVATE HAVE_GL=1)
71
+ endif()
72
+
73
+ if (PYOPENCL_TRACE)
74
+ target_compile_definitions(_cl PRIVATE PYOPENCL_TRACE=1)
75
+ endif()
76
+
77
+ if (PYOPENCL_USE_SHIPPED_EXT)
78
+ target_compile_definitions(_cl PRIVATE PYOPENCL_USE_SHIPPED_EXT=1)
79
+ endif()
80
+
81
+ install(TARGETS _cl LIBRARY DESTINATION .)
82
+
83
+ # vim: foldmethod=marker:sw=2
@@ -28,3 +28,5 @@ include CITATION.cff
28
28
  recursive-exclude _skbuild *
29
29
 
30
30
  recursive-include contrib *.vim *.py README
31
+
32
+ include CMakeLists.txt
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyopencl
3
- Version: 2024.2
3
+ Version: 2024.2.1
4
4
  Summary: Python wrapper for OpenCL
5
5
  Home-page: http://mathema.tician.de/software/pyopencl
6
6
  Author: Andreas Kloeckner
@@ -1,3 +1,3 @@
1
- VERSION = (2024, 2)
1
+ VERSION = (2024, 2, 1)
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
3
+ Version: 2024.2.1
4
4
  Summary: Python wrapper for OpenCL
5
5
  Home-page: http://mathema.tician.de/software/pyopencl
6
6
  Author: Andreas Kloeckner
@@ -1,4 +1,5 @@
1
1
  CITATION.cff
2
+ CMakeLists.txt
2
3
  LICENSE
3
4
  MANIFEST.in
4
5
  Makefile.in
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
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