question regarding gm_set_acceptable_sizes() function
"rwillis" <[email protected]> Mon, 14 Apr 2003 13:45:11 -0700
| Newsgroups | gmane.network.myrinet.general |
|---|---|
| Message-ID | <[email protected]> |
Question regarding gm_set_acceptable_sizes() function... The documentation says that this function uses one mask to represent all acceptable messages sizes, so can I use buffers that are not 2^n bytes in size, or do I restrict my sizes to powers of 2? eg. I have a buffer size that is 16 bytes and a buffer that is 4 bytes, so the mask is 0...010100 in binary. This tells the GM API to immediately reject all other sizes, yes?. So how can this work if the buffers are not 2^n bytes long? I am also assuming that the buffer size is the message size, not the actual memory allocation returned by gm_max_length_for_size(). Now I can also interprete this function as saying that I can accept messages that are not the same size as the buffer if the mask bit is set appropriately, for example: I have a 16 byte buffer, and I will also allow message sizes 2,4 and 8 (but not 1) to use the buffer so the mask is 0...011110 I do not think that is is correct though as the documentation says that GM will only accept messages that are exactly the same size as the buffer. Please confirm this though. Thank you, ===================================================================== Richard Willis, B.Eng (EIT) [email protected] CTF Systems INC Tel 604-941-8561 Suite-15 1750 McLean Ave FAX 604-941-8565 Port Coquitlam, B.C. CANADA V3C 1M9 =====================================================================