after importing pyopencl, the creation of context and queue is missing: ctx = cl.create_some_context() que = cl.CommandQueue(ctx)
further, the example was tested on both a GTX 560 and GTX 970, with current nvidia driver / opencl-icd / cuda-toolkit packages from testing. (CUDA 7.5) kind regards, Jonas