Hi,
I'm trying something like:

cl.Program(ctx, src_code).build(options=
options, cache_dir="/tmp/mycache_dir")

but I got the following error:

...
  File
"/home/guilherme/.local/lib/python2.7/site-packages/pyopencl-2011.2-py2.7-linux-x86_64.egg/pyopencl/__init__.py",
line 116, in build
    cache_dir=cache_dir)
  File
"/home/guilherme/.local/lib/python2.7/site-packages/pyopencl-2011.2-py2.7-linux-x86_64.egg/pyopencl/cache.py",
line 457, in create_built_program_from_source_cached
    ctx, src, options, devices, cache_dir)
  File
"/home/guilherme/.local/lib/python2.7/site-packages/pyopencl-2011.2-py2.7-linux-x86_64.egg/pyopencl/cache.py",
line 419, in _create_built_program_from_source_cached
    join(cache_dir, cache_key))
UnboundLocalError: local variable 'join' referenced before assignment

I have fixed this bug in my installation but would be great to see this bug
fixed for the next official release...

thanks in advance!
Guilherme
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to