Skip to content

clCreateImage failed: IMAGE_FORMAT_NOT_SUPPORTED #1

Description

@aniltirli

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions