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 Thanks, Shivangi Agarwal On Wed, Jul 17, 2019 at 4:56 PM Andreas Kloeckner <li...@informa.tiker.net> wrote: > Shivangi, > > Shivangi Agarwal <shivangiagarwa...@gmail.com> writes: > > I wrote a simple hello world pyocl testcase for a Xilinx accelerator > card, > > but I am getting kernel '_source' not found error. I stepped through the > > code and it seems like the pyopencl code is trying to create a '_source' > > kernel. Any ideas on how I can work around this? > > Does this also happen with examples/demo.py shipped in the distribution? > If not, could you share the code for which this occurs? > > Thanks, > Andreas >
22_verify.py.rtf
Description: MS-Word document
_______________________________________________ PyOpenCL mailing list -- pyopencl@tiker.net To unsubscribe send an email to pyopencl-le...@tiker.net