home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / parallel / 3047 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.7 KB  |  50 lines

  1. Newsgroups: comp.parallel
  2. Path: sparky!uunet!gatech!hubcap!fpst
  3. From: swhite@mathcs.emory.edu (Scott White)
  4. Subject: Can a Hypercube programmer lend me a hand?
  5. Message-ID: <1993Jan25.163844.13169@hubcap.clemson.edu>
  6. Sender: fpst@hubcap.clemson.edu (Steve Stevenson)
  7. Organization: Emory University, Dept of Math and CS
  8. Date: 25 Jan 1993 10:04:40 -0500
  9. Approved: parallel@hubcap.clemson.edu
  10. Lines: 38
  11.  
  12. Hi,
  13.  
  14. I was looking over some Hypercube code, which I have some experience
  15. programming, and came across csend() calls that have a negative value
  16. in the "destination node" argument.  Looking at the csend() man page, I
  17. see the following:
  18.  
  19.      If node is a negative number up to a certain value, it
  20.      causes a ``global'' send. If node is -1, the message is sent
  21.      to all nodes. Other negative numbers cause the message to be
  22.      sent to a subcube composed of a set of the nodes surrounding
  23.      the sender. The dimension of this cube is calculated as (d -
  24.      nodedim() -1) , where d is the dimension of the subcube, and
  25.      is less than or equal to nodedim().
  26.  
  27. Now, I'm not sure if this is the clearest explanation.  Maybe I'm just being
  28. thick.  Can someone help me understand just who gets the message in the
  29. following examples:
  30.  
  31.     nodedim is 2, destination argument is -2, I am processor 2
  32.  
  33.     nodedim is 3, destination argument is -2, I am processor 2
  34.  
  35.     nodedim is 5, destination argument is -3, I am processor 2
  36.  
  37.  
  38. Your assistance in getting my week off to a better start is greatly appreciated!
  39.  
  40. Thanks,
  41.  
  42. Scott White
  43. Emory U. Math/C.S. Dept.
  44. -- 
  45. Scott White
  46. Department of Mathematics and Computer Science
  47. Emory University, Atlanta, GA 
  48. Internet: swhite@mathcs.emory.edu   UUCP: {rutgers,ogicse,gatech}!emory!swhite    
  49.  
  50.