| Cray X1TM User Environment Differences - S-2310-51 | ||
|---|---|---|
| Prev Section | Chapter 4. Libraries Differences | Next Section |
The POSIX threading library for Cray X1 systems is based on the POSIX standard and follows the shared-memory programming model. The POSIX threading library is required only for codes that are based on the POSIX threading model.
Note: If your code contains function calls that are included in the POSIX specification, you should not have to modify your code.
On Cray X1 systems, command-mode pthreads default to being library-scheduled threads (PROCESS_SCOPE) with the option for the user to use kernel-scheduled threads (SYSTEM_SCOPE).
On Cray X1 systems, all applications use kernel-scheduled threads (SYSTEM_SCOPE), and library-scheduled threads are not available.
Table 4-13 lists pthread routines that act differently in MSP mode on the Cray X1 system than on Cray SV1 series and Cray T3E systems.
For more information about the POSIX threading library, start with the pthreads(3p) man page. For information about a particular routine, see the respective man page.
Table 4-13. pthread Routines on Cray X1 Systems
Name | Purpose |
|---|---|
pthread_attr_setstacksize | Sets the size of each individual SSP stack and the common stack. Stacksize*5 amount of space will be allocated by the pthread library. |
pthread_attr_setstackaddr | Sets the starting address for the stacks; there must have enough space to accommodate stacksize*5 memory to be allocated. |
pthread_attr_setguardsize | Sets the thread guardsize attribute. This routine is ignored in MSP applications. |
| Prev Section | Table of Contents | Title Page | Index | Next Section |
| SHMEM Libraries | Up one level | Utility Library |