After some debugging I'm able to fix this problem by below patch, In cache.py - if cache_dir != False: + if cache_dir != False and cache_dir != None:
I see that cache_dir is None when I run in Eclipse. Cheers, Giri On Sat, Feb 18, 2012 at 2:10 AM, Giridhar Tammana <[email protected]>wrote: > Hi, > > I'm trying to use Eclipse to run/test a pyopencl program. > If I run from command line I'm able to run the script but when I run or > debug from Eclipse I see following error. > > Traceback (most recent call last): > File "D:\work\eclipse\eclipse_workspace\test\test.py", line 406, in > <module> > prg = cl.Program(ctx, source).build() > File "C:\Python27\lib\site-packages\pyopencl\__init__.py", line 116, in > build > cache_dir=cache_dir) > File "C:\Python27\lib\site-packages\pyopencl\cache.py", line 457, in > create_built_program_from_source_cached > ctx, src, options, devices, cache_dir) > File "C:\Python27\lib\site-packages\pyopencl\cache.py", line 389, in > _create_built_program_from_source_cached > assert prg_devs[i] == devices[dest_index] > AssertionError > > Please help. > > Thank you. > Regards, > Giri >
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
