RCCE_comm_split.3 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .TH RCCE 3 2010-02-04 "RCCE MANPAGE" "RCCE Library"
  2. .SH NAME
  3. RCCE_comm_split \- RCCE create communicator
  4. .SH SYNOPSIS
  5. .B #include <rcce.h>
  6. .sp
  7. .BI "int RCCE_comm_split(int(*" color ")int,void *), void* "aux ", RCCE_COMM*" comm );
  8. .SH DESCRIPTION
  9. .BR RCCE_comm_split()
  10. creates a new communicator, comm, based on the
  11. global communicator, RCCE_COMM_WORLD, the function color(), and
  12. any custom data the programmer wants to furnish.
  13. .PP
  14. color() is called as color(rank, aux) and returns an integer.
  15. All UEs must call RCCE_comm_split() with identical arguments.
  16. .PP
  17. All UEs with the same return value for color() will be placed
  18. in the same communication group. The UEs inside that group are
  19. ranked in the order of their rank within the global communicator.
  20. .PP
  21. Note the differences between RCCE and MPI_Comm_split().
  22. RCCE_comm_split() has
  23. .IP * 2
  24. No input communicator; the global communicator is assumed.
  25. .IP *
  26. No key value, the global rank is assumed.
  27. .IP *
  28. No color value, but a uniform function to compute the color, based on global rank and (possibly) other attributes.
  29. .PP
  30. The current version of RCCE does not provide the ability to
  31. delete RCCE communicators. However, if a communicator is
  32. no longer needed, it can safely be overwritten by a new invocation
  33. of RCCE_comm_split().
  34. .TP
  35. .B comm
  36. The new communicator, based on the global communicator, RCCE_COMM_WORLD.
  37. .TP
  38. .B color
  39. Function pointer to color(). All UEs with the same return value
  40. for color() will be placed in the same communication group.
  41. .TP
  42. .B aux
  43. Any custom data the programmer wants to furnish.
  44. .SH "RETURN VALUE"
  45. Upon successful completion
  46. .BR RCCE_comm_split()
  47. returns
  48. .BR RCCE_SUCCESS .
  49. .SH ERRORS
  50. Look in
  51. .BR rcce.h
  52. for additional error codes.
  53. .SH "SEE ALSO"
  54. rcce.h(5)
  55. .SH EXAMPLE
  56. .PP
  57. To be supplied.