On Wed, Jul 28, 2010 at 11:54:07AM +1100, Lutaev D. A. wrote: > When we try to use Parallel Octave with 3 (or more PC) Octave doesn't send > messages from Master PC and Slaves PC and vice-versa. > > We have used these commands: > > clear; > hosts = [ "labmat04"; "labmat03"; "labmat05" ]; > sockets = connect(hosts); > psum = zeros(1,2); > reval( "send(sum([1:50]),sockets(1,:))", sockets(2,:)); > reval( "send(sum([51:100]),sockets(1,:))", sockets(3,:)); > psum(1) = recv(sockets(2,:)); > psum(2) = recv(sockets(3,:)); > sum(psum) > scloseall(sockets); > > Where: labmat04, labmat03, labmat05 are our PC > > With 2 PC we haven't had any problems. > > We have used these commands > > clear; > hosts = [ "labmat04"; "labmat03"]; > sockets = connect(hosts); > reval( "send(sum([1:50]),sockets(1,:))", sockets(2,:)); > A = recv(sockets(2,:)); > scloseall(sockets);
Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=20100805131016.GA16949%40olaf&forum_name=octave-dev This is probably solved now > Also, when we try to send-receive data like this: > reval( "send(q, sockets(1, 1:2));", sockets(2, 1:2)); There is a typo here, should be 'sockets(1, :)' and 'sockets(2, :)'. > we had seen, that sending-receiving operations finished correctly only if > 'q' had the String data type. Otherwise, if 'q' was, for example, an > array, then all values of all elements had became 3.0387e-319. I can not reproduce this. Olaf ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
