
Product
Introducing Socket MCP for Claude Desktop
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
This package extends PyOpenCl by providing an object-oriented kernel programming framework and debugging capabilities.
This package extends PyOpenCl by providing an object-oriented kernel programming framework and debugging capabilities.
What makes pyopencl-extension special?
PyOpenCl <https://pypi.org/project/pyopencl/>
_ which can increase performance significantly.The project is in an early development stage and actively maintained.
For any feature requests/feedback/etc. you can get in touch via
Github <https://github.com/philipp-mohr/pyopencl-extension/issues>
_ or by E-Mail (philipp.mohr@tuhh.de).
Install this library with :code:pip install pyopencl-extension
.
When automatic installation of PyOpenCl fails (happens when using Windows):
1. Download appropriate .whl binary from `PyOpenCl binaries for Windows <https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopencl>`_
2. Make sure to have `proper <https://streamhpc.com/blog/2015-03-16/how-to-install-opencl-on-windows/>`_ OpenCl driver for your graphics card installed.
3. Run :code:`pip install "pyopencl-X-cpX-cpX-X.whl"` in terminal, where X must be replaced with corresponding version.
One very simple example is given below.
.. code-block:: python
from pyopencl_extension import Kernel, Global, Scalar, Types, zeros
import numpy as np
ary = zeros((10,), Types.short)
knl = Kernel('some_operation',
{'ary': Global(ary), # notice that ary is set as default argument
'number': Scalar(Types.short)},
"""
ary[get_global_id(0)] = get_global_id(0) + number;
""",
global_size=ary.shape).compile(emulate=True)
knl(number=3)
assert np.allclose(ary.get(), np.arange(10) + 3)
By setting the argument 'emulate=True' the kernel will be compiled in emulation mode. This mode creates a file 'some_operation.py', which can be inspected using a visual debugger:
.. image:: https://i.imgur.com/Gfg9AtZ.png :width: 600
More advanced examples can by found in the tests hosted on Github <https://github.com/philipp-mohr/pyopencl-extension/tree/main/tests>
_.
FAQs
This package extends PyOpenCl by providing an object-oriented kernel programming framework and debugging capabilities.
We found that pyopencl-extension demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.