From ef5115001dae194a2705e654b2404fafac956bac Mon Sep 17 00:00:00 2001
From: Yichao Yu <yyc1992@gmail.com>
Date: Sat, 24 May 2014 09:14:42 -0400
Subject: [PATCH] not sure if this should be _prg or _get_prg(), but at least
 it should not be _prg().

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

diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py
index 55ea15cd..9389f930 100644
--- a/pyopencl/__init__.py
+++ b/pyopencl/__init__.py
@@ -252,7 +252,7 @@ class Program(object):
 
     def compile(self, options=[], devices=None, headers=[]):
         options = " ".join(options)
-        return self._prg().compile(options, devices, headers)
+        return self._prg.compile(options, devices, headers)
 
     def __eq__(self, other):
         return self._get_prg() == other._get_prg()
-- 
GitLab