Open
mdipierro
opened this issue 13 years ago
•
4 comments
Hello Sean,
I installed python2.7 and did a pip install clyther
I am trying this code:
http://srossross.github.com/Clyther/examples.html#compile-to-opencl-source
and I get
Traceback (most recent call last):
File "test1.py", line 32, in
print generate_sin.compile(ctx, a=cl.global_memory(cl.cl_float2), source_only=True)
File "/Library/Python/2.7/site-packages/clyther/cly_kernel.py", line 157, in compile
cl_kernel = self.compile_or_cly(ctx, source_only=source_only, cly_meta=cly_meta, **kwargs)
File "/Library/Python/2.7/site-packages/clyther/cly_kernel.py", line 207, in compile_or_cly
program = self._compile(ctx, args, defaults, kernel_name, source)
File "/Library/Python/2.7/site-packages/clyther/cly_kernel.py", line 261, in _compile
raise CLComileError('\n'.join(log_lines), program)
clyther.cly_kernel.CLComileError: <opencl.Device name='Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz' type=2L>
No kernels or only kernel prototypes found
I also noticed that most of the clyther examples on the website are not yet self-contained, you often need to add required imports from other places to make them work, but otherwise it's been working well - assuming that you have an OpenCL runtime installed (AMD, INTEL or NVIDIA) and that you are able to run other CL code.
I'm having the same issue, using Clyther-0.4-beta (on Windows). When I try to run "examples/conv.py", I get clyther.cly.kernel.CLComileError with "use of undeclared identifier 'cly_a_info'. Looking at the generated .cl file, it simply defines kernel setslice(). At no point is cly_a_info declared.