Shivangi Agarwal <shivangiagarwa...@gmail.com> writes: > Hi Andreas, > > The demo.py example works fine with pocl but does not run on the Xilinx > device. It gives me the following error: > > *[XRT] ERROR: clCreateProgramWithSource() is not supported, please use > clCreateProgramWithBinary()./usr/local/lib/python2.7/dist-packages/pyopencl/cache.py:493: > UserWarning: PyOpenCL compiler caching failed with an exception:[begin > exception]Traceback (most recent call last): File > "/usr/local/lib/python2.7/dist-packages/pyopencl/cache.py", line 476, in > create_built_program_from_source_cached include_path=include_path) File > "/usr/local/lib/python2.7/dist-packages/pyopencl/cache.py", line 397, in > _create_built_program_from_source_cached prg = _cl._Program(ctx, > src)LogicError: clCreateProgramWithSource failed: INVALID_OPERATION[end > exception] % format_exc())[XRT] ERROR: clCreateProgramWithSource() is not > supported, please use clCreateProgramWithBinary().Traceback (most recent > call last): File "pyoprncl_demo.py", line 27, in <module> """).build() > File "/usr/local/lib/python2.7/dist-packages/pyopencl/__init__.py", line > 510, in build options_bytes=options_bytes, source=self._source) File > "/usr/local/lib/python2.7/dist-packages/pyopencl/__init__.py", line 527, in > _build_and_catch_errors return build_func() File > "/usr/local/lib/python2.7/dist-packages/pyopencl/__init__.py", line 509, in > <lambda> cache_dir=cache_dir, include_path=include_path), File > "/usr/local/lib/python2.7/dist-packages/pyopencl/cache.py", line 495, in > create_built_program_from_source_cached prg = _cl._Program(ctx, > src)pyopencl._cl.LogicError: clCreateProgramWithSource failed: > INVALID_OPERATION* > > I am attaching my hello world example to this email. However, I believe you > will need access to a Xilinx Alveo card to recreate the error. > > We are trying to officially support pyopencl for > https://github.com/Xilinx/XRT
Well, the demo program then fails because the Xilinx ICD does not support on-line compilation. Could you try and explain what you were trying to do in the pdb transcript you shared? (It would also be helpful if you could share that in plain text. Do not use images, and definitely not Word files. It's not transparent what you're trying to do... The sample source code you shared seems to want to run a built-from binary kernel. I added a test to make sure that works (only building was tested, not running): https://gitlab.tiker.net/inducer/pyopencl/merge_requests/86 What version of PyOpenCL are you using? Andreas
signature.asc
Description: PGP signature
_______________________________________________ PyOpenCL mailing list -- pyopencl@tiker.net To unsubscribe send an email to pyopencl-le...@tiker.net