Python并行编程“没有可用的回溯"

时间:2016-10-01 16:08:44

标签: python python-2.7 parallel-processing ipython-parallel

我正在尝试使用ipyparallel包在python中运行并行代码。

import ipyparallel as ipp
# create client & view
rc = ipp.Client()
dv = rc[:]
v = rc.load_balanced_view()

def my(i):    
     import numpy as np
     aa[:,:,i]=np.dot(uanom_L[:,:,i-I_a:i+I_a+1],lcoz_a)
     bb[:,:,i]=np.dot(uanom_L[:,:,i-I_b:i+I_b+1],lcoz_b) 
     print(i)
     return aa,bb       

aaa=v.map(my,np.arange(I_a,c-I_a))
aaa.get()

然而,我收到了以下错误,

[3:apply]: No traceback available
[2:apply]: No traceback available
[1:apply]: No traceback available
[0:apply]: No traceback available

8773更多例外......

任何想法 谢谢

0 个答案:

没有答案