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.
- pyopencl-2024.2.1/CMakeLists.txt +83 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/MANIFEST.in +2 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/PKG-INFO +1 -1
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/version.py +1 -1
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/PKG-INFO +1 -1
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/SOURCES.txt +1 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/CITATION.cff +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/LICENSE +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/Makefile.in +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/README.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/README_SETUP.txt +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/aksetup_helper.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/configure.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/cldis.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/fortran-to-opencl/README +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/fortran-to-opencl/translate.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/contrib/pyopencl.vim +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/Makefile +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/algorithm.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/array.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/conf.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/howto.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/index.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/make_constants.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/misc.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_const.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_gl.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_memory.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_platform.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_program.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/runtime_queue.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/subst.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/tools.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/doc/types.rst +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/black-hole-accretion.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo-struct-reduce.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_array.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_array_svm.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_elementwise.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_elementwise_complex.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_mandelbrot.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_meta_codepy.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/demo_meta_template.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/dump-performance.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/dump-properties.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/gl_interop_demo.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/gl_particle_animation.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/ipython-demo.ipynb +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/median-filter.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/n-body.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/narray.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/noisyImage.jpg +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/pi-monte-carlo.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/svm.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/examples/transpose.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/__init__.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/_cluda.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/_mymako.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/algorithm.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/array.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/bitonic_sort.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/bitonic_sort_templates.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cache.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/capture_call.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/characterize/__init__.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/characterize/performance.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-airy.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-bessel-j-complex.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-bessel-j.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-bessel-y.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-complex.h +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-eval-tbl.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-hankel-complex.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/array.h +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/openclfeatures.h +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/philox.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cl/pyopencl-random123/threefry.cl +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/clmath.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/clrandom.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/cltypes.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/__init__.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/array.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/dtypes.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/__init__.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/gen_elemwise.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/gen_reduction.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/setup_opencl.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/test_gpu_elemwise.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/compyte/ndarray/test_gpu_ndarray.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/elementwise.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/invoker.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/ipython_ext.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/reduction.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/scan.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl/tools.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/dependency_links.txt +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/not-zip-safe +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/requires.txt +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyopencl.egg-info/top_level.txt +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pyproject.toml +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/pytest.ini +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/setup.cfg +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/setup.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/bitlog.cpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/bitlog.hpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/clinfo_ext.h +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/mempool.hpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/pyopencl_ext.h +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/tools.hpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl.cpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl.hpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl_part_1.cpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_cl_part_2.cpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_constants.cpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_helpers.hpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/src/wrap_mempool.cpp +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/add-vectors-32.spv +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/add-vectors-64.spv +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/empty-header.h +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_algorithm.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_array.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_arrays_in_structs.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_clmath.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_clrandom.py +0 -0
- {pyopencl-2024.2 → pyopencl-2024.2.1}/test/test_enqueue_copy.py +0 -0
- {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
|
|
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
|
|
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
|
|
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
|
|
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
|