On Sun, 20 Nov 2011 05:07:55 -0800, gliptak 
<reply+m-20055400-1a725a8ae8e73dce2eb829a1d162d7a448aac846-352...@reply.github.com>
 wrote:
> I guess you didn't say it isn't supported, but it wasn't tested against.
> 
> http://wiki.tiker.net/PyOpenCL/FrequentlyAskedQuestions#Which_implementations_was_PyOpenCL_tested_against.3F
> 
> In test/ test_clmath.py runs OK.
> 
> Here are the fails I do see:
> 
> $ LD_LIBRARY_PATH=/usr/lib64 python test_wrapper.py 
> ============================= test session starts 
> ==============================
> platform linux2 -- Python 2.7.2 -- pytest-2.2.0
> collected 12 items 
> 
> test_wrapper.py .F...s......
> 
> =================================== FAILURES 
> ===================================
> _______________ TestCL.test_invalid_kernel_names_cause_failures 
> ________________
> 
> self = <test_wrapper.TestCL instance at 0x2622f80>
> 
>     @pytools.test.mark_test.opencl
>     def test_invalid_kernel_names_cause_failures(self):
>         for platform in cl.get_platforms():
>             for device in platform.get_devices():
>                 ctx = cl.Context([device])
>                 prg = cl.Program(ctx, """
>                         __kernel void sum(__global float *a)
>                         { a[get_global_id(0)] *= 2; }
>                         """).build()
>     
>                 try:
> >                   prg.sam
> 
> test_wrapper.py:166: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <pyopencl.Program object at 0x2623950>, attr = 'sam'
> 
>     def __getattr__(self, attr):
>         try:
> >           knl = Kernel(self._get_prg(), attr)
> E           RuntimeError: No kernel found for given name

Known. This is a bug in the Intel implementation. Funnily, in this case
a C++ exception comes flying past the (supposedly C-only) OpenCL interface.

> ==================================== ERRORS 
> ====================================
> ________________________ ERROR collecting test_array.py 
> ________________________
> test_array.py:665: in <module>
> >   register_dtype(mmc_dtype, "minmax_collector")
> ../../../../.local/lib/python2.7/site-packages/pyopencl-2011.1.2-py2.7-linux-x86_64.egg/pyopencl/compyte/dtypes.py:50:
>  in register_dtype
> >                   % (dtype, DTYPE_TO_NAME[dtype], ", ".join(c_names)))
> E           RuntimeError: dtype '[('cur_min', '<f4'), ('cur_max', '<f4')]' 
> already registered (as 'minmax_collector', new names 'minmax_collector')
> =========================== 1 error in 0.01 seconds
> ============================

This should be fixed in recent git.

Andreas

Attachment: pgpvRd0axZzu1.pgp
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to