ARCHCODESection: PVM Version 3.4 (3PVM)Updated: 15 March, 1994 |
ARCHCODESection: PVM Version 3.4 (3PVM)Updated: 15 March, 1994 |
C int cod = pvm_archcode( char *arch )
Fortran call pvmfarchcode( arch, cod )
Naturally, you shouldn't assume the values returned by pvm_archcode are etched in stone; the numbers have no intrinsic meaning except that if two different arch names map to the same value then they're compatible.
This routine is actually obsolete in the sense that the architecture codes returned are already available in the hi_dsig field of the pvmhostinfo structure returned by pvm_config(), as shown in the below example. The routine is maintained for backwards compatibility only.
C:
struct pvmhostinfo *hip;
int i;
pvm_config((int *)0, (int *)0, &hip);
i = pvm_archcode(hip[0].hi_arch);
/* or you could just do: i = hip[0].hi_dsig; */
Fortran:
CALL PVMFARCHCODE( 'RS6K', k )
The following error conditions can be returned as well: