Next: List of Error Codes
Up: smp_lib
Previous: Utility Routines
4. Non-SMPlib-API Routines
The next two routines are included in v2.2+,
but they are not part of the SMPlib v2 API.
The two routines are intended for calling by non-SMP programs.
void SMP_Pinit(int nprocs, int myid);
SUBROUTINE SMP_PINIT(NPROCS, MYID)
INTEGER NPROCS, MYID
- performs pin-to-node for process MYID (
0..nprocs-1),
assuming a fixed number of threads per process
(defined by OMP_NUM_THREADS).
The environment variable SMP_PINIT is still checked for
the actual activation.
Note: this function should NOT be used together with SMP_Fork()
or SMP_Forkthread().
- error code:
SMP_ERR_NODE, SMP_ERR_PINIT
void SMP_Pinit_thread(int nprocs, int myid, int nthreads[]);
SUBROUTINE SMP_PINIT_THREAD(NPROCS, MYID, NTHREADS)
INTEGER NPROCS, MYID, NTHREADS(0:*)
- same as
SMP_Pinit except that it accepts a variable number
of threads per process.
The same restrictions for SMP_Pinit apply to this function.
- error code:
SMP_ERR_NODE, SMP_ERR_PINIT
Haoqiang Jin
2005-08-10