next up previous contents
Next: Parallelism Specification Directives Up: HPF_CRAFT Functional Summary Previous: Parallel Inquiry Intrinsics

Task Identity

MY_PE() may be used to return the local processor number. The physical processors are identified by an integer in the range of 0 to n-1 where n is the value returned by the global HPF_LIBRARY function NUMBER_OF_PROCESSORS. Processor identifiers are returned by ABSTRACT_TO_PHYSICAL, which establishes the one-to-one correspondence between the abstract processors of an HPF processors arrangement and the physical processors. Also, the local library function MY_PROCESSOR returns the identifier of the task executing the call.