Code for the GPU Image Processing using OpenCL article. Tested on Windows 7 and Windows 10 for an Intel and AMD GPU.
Run: python main.py
Home Page: https://medium.com/@harald_scheidl/15e34b787480
Code for the GPU Image Processing using OpenCL article. Tested on Windows 7 and Windows 10 for an Intel and AMD GPU.
Run: python main.py
error at line 28
pyopencl 2019.1.2
python 3.9.0 and 3.5.2
Ubuntu 16.04
Intel(R) HD Graphics Haswell GT2 Mobile
Traceback (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/anil/.vscode/extensions/ms-python.python-2020.12.424452561/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module> cli.main() File "/home/anil/.vscode/extensions/ms-python.python-2020.12.424452561/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main run() File "/home/anil/.vscode/extensions/ms-python.python-2020.12.424452561/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file runpy.run_path(target_as_str, run_name=compat.force_str("__main__")) File "/usr/local/lib/python3.9/runpy.py", line 268, in run_path return _run_module_code(code, init_globals, run_name, File "/usr/local/lib/python3.9/runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/anil/workspace_vscode/GPUImageProcessingArticle/main.py", line 64, in <module> main() File "/home/anil/workspace_vscode/GPUImageProcessingArticle/main.py", line 55, in main dilate = applyMorphOp(img, MorphOp.DILATE) File "/home/anil/workspace_vscode/GPUImageProcessingArticle/main.py", line 28, in applyMorphOp imgInBuf = cl.Image(context, cl.mem_flags.READ_ONLY, cl.ImageFormat(cl.channel_order.LUMINANCE, cl.channel_type.UNORM_INT8), shape=shape) # holds a gray-valued image of given shape File "/home/anil/.local/lib/python3.9/site-packages/pyopencl/__init__.py", line 962, in image_init image_old_init(self, context, flags, format, desc, hostbuf) pyopencl._cl.RuntimeError: clCreateImage failed: IMAGE_FORMAT_NOT_SUPPORTED
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.