User`s guide

Cray XMT Programming Environment Users Guide
Page
H.4 LUC Type Definitions . . . . . . . . . . . . . . . . . . . . . . 159
H.5 LUC Callback Functions . . . . . . . . . . . . . . . . . . . . . . 160
H.5.1
LUC_RPC_Function_InOut
................. 160
H.5.2
LUC_Mem_Avail_Completion
................ 161
H.5.3
LUC_Completion_Handler
................. 162
H.6 LUC Return Codes . . . . . . . . . . . . . . . . . . . . . . . 162
Glossary 167
Procedures
Procedure 1. Setting up RSA authentication with a passphrase . . . . . . . . . . . . 15
Procedure 2. Using RSA authentication without a passphrase . . . . . . . . . . . . 16
Procedure 3. Creating and using a LUC client object . . . . . . . . . . . . . . . 54
Procedure 4. Creating and using a LUC server object . . . . . . . . . . . . . . 56
Examples
Example 1. Testing a shift-left operation for a carried number . . . . . . . . . . . . 34
Example 2. Retrieving a condition code and result of a previous operation . . . . . . . . . 35
Example 3. Retrieving a condition code set by a previous operation . . . . . . . . . . 35
Example 4. Calling standard I/O functions from parallel code . . . . . . . . . . . . 37
Example 5. Calling record-oriented I/O functions from parallel code . . . . . . . . . . 37
Example 6. Preventing racing when calling I/O functions . . . . . . . . . . . . . 38
Example 7. Calling UNIX I/O functions from parallel code . . . . . . . . . . . . . 40
Example 8. Using synchronization with UNIX I/O functions . . . . . . . . . . . . 41
Example 9. Using synchronization with UNIX record-oriented I/O functions . . . . . . . . 41
Example 10. Mapping memory to share among multiple processes . . . . . . . . . . . 47
Example 11. LUC client code example . . . . . . . . . . . . . . . . . . 55
Example 12. LUC Server code example . . . . . . . . . . . . . . . . . . 57
Example 13. Allocating and using
LucEndpoint objects to communicate . . . . . . . . 57
Example 14. Using
dslr_snapshot and dslr_restore to save and restore data in a file. . . 71
Example 15. Using dslr_pwrite to write data to a file and dslr_pread to read back the data . . 72
Tables
Table 1.
mta-pe Utilities . . . . . . . . . . . . . . . . . . . . . . 19
Table 2. Condition Codes . . . . . . . . . . . . . . . . . . . . . . 133
Table 3. Condition Masks . . . . . . . . . . . . . . . . . . . . . . 133
Table 4. C/C++ Keywords Recognized by the Cray XMT Compiler . . . . . . . . . . 139
Table 5. Standard C++ Keywords Recognized by the Cray XMT Compiler . . . . . . . . . 139
10 S247920