next up previous
Next: Prototype Definition Up: smp_lib Previous: Environment Variables

3. Application Programming Interface

SMPlib APIs for both C and Fortran languages are listed in this section. The Fortran interface has a very similar syntax as the C interface except for the memory allocation routines, such as SMP_GETSHMEM and SMP_GETLOCMEM. SMP_GETSHMEMP is added for a platform that supports the Cray pointer. So, in most cases both C and Fortran interfaces are described togather. For those routines error conditions may exist, the corresponding error codes are included; otherwise, no error will be generated. A list of error codes is given in Section 5.



API Subsections
3.1 Prototype Definition
3.2 Process Creation
3.3 Memory Allocation
3.4 Synchronization
3.5 Data Reduction
3.6 Utility Routines


Haoqiang Jin 2005-08-10