我正在尝试使用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更多例外......
任何想法 谢谢