diff --git a/examples/demo_meta_template.py b/examples/demo_meta_template.py index 895c6a9cbf951722d352353d7c403cad689e32de..fe05b1eeabb2fac27b1716e34daf3d1ee44d3930 100644 --- a/examples/demo_meta_template.py +++ b/examples/demo_meta_template.py @@ -8,7 +8,7 @@ macroblock_count = 33 dtype = numpy.float32 total_size = local_size*thread_strides*macroblock_count -ctx = cl.Context() +ctx = cl.create_some_context() queue = cl.CommandQueue(ctx) a = numpy.random.randn(total_size).astype(dtype)