From 9e2606e2bacf0671b65532e5dde4c930937fd406 Mon Sep 17 00:00:00 2001
From: Alex Rothberg <agrothberg@gmail.com>
Date: Thu, 24 Jul 2014 10:01:05 -0400
Subject: [PATCH] Fix cl_load_edit_kernel with build options

---
 pyopencl/ipython_ext.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/ipython_ext.py b/pyopencl/ipython_ext.py
index 0ceb04f8..81fbcdf8 100644
--- a/pyopencl/ipython_ext.py
+++ b/pyopencl/ipython_ext.py
@@ -71,7 +71,7 @@ class PyOpenCLMagics(Magics):
         header = "%%cl_kernel"
 
         if build_options:
-            header = "%s %s" % (header, build_options)
+            header = '%s -o "%s"' % (header, build_options)
 
         content = "%s\n\n%s" % (header, kernel)
 
-- 
GitLab