I have some problem with the multi-processing module. Here is the test I want to run.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
function square, x
return, x^2
end
x1 = findgen(8)
; pool = mg_pool(n_processes=4)
pool = obj_new('MG_Pool', n_processes=4)
y1 = pool->map('square', x1)
print, y1
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
The error message is
MG_MAP::NEXT: error completing pool command: Variable is undefined: SQAURE.
If I replace 'square' in the map method with other intrinsic functions like 'sin' or 'beselj', it works well. Could you give me some hint about the problem? Thanks.
I have some problem with the multi-processing module. Here is the test I want to run. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; function square, x return, x^2 end
x1 = findgen(8) ; pool = mg_pool(n_processes=4) pool = obj_new('MG_Pool', n_processes=4) y1 = pool->map('square', x1) print, y1 end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
The error message is MG_MAP::NEXT: error completing pool command: Variable is undefined: SQAURE.
If I replace 'square' in the map method with other intrinsic functions like 'sin' or 'beselj', it works well. Could you give me some hint about the problem? Thanks.