2013-03-16 62 views
0

我想讓我的iMac運行Mac OS X Lion與NumPy 1.5.1和Python 2.6.0一起使用PyOpenCL。我已經第一次使用easy_install的安裝PyOpenCL,然後我想它是如何在這裏解釋:http://wiki.tiker.net/PyOpenCL/Installation/MacPyOpenCL在OS X上無法正常工作,沒有輸出

當我運行演示腳本(http://documen.tician.de/pyopencl/#),它顯示了OpenCL設備(英特爾酷睿i3和ATI Radeon HD5670),但是當我選擇其中之一,兩者都打印0.0

Choose device(s): 
[0] <pyopencl.Device 'Intel(R) Core(TM) i3 CPU   550 @ 3.20GHz' on 'Apple' at 0xffffffff> 
[1] <pyopencl.Device 'ATI Radeon HD 5670' on 'Apple' at 0x1021b00> 
Choice, comma-separated [0]:1 
Set the environment variable PYOPENCL_CTX='1' to avoid being asked again. 
0.0 

這裏怎麼回事?提前致謝!

回答

0

在腳本的末尾:

print la.norm(a_plus_b - (a+b)) 

所以0.0表示期望返回的值,如果一切正常......

相關問題