The Queen's University of Belfast
Parallel Computer Centre

[Next] [Previous] [Top]

Additional Features


PVMFTASKS()

Returns information about the tasks running on the virtual machine - this is the same as doing a ps console command

PVMFTASKS(WHERE, NTASK, TID, PTID,

DTID, FLAG, AOUT, INFO)

Eg

CALL PVMFTASKS(DTID, NTASK, INFO)

PVMFTIDTOHOST()

Returns the host ID on which the specified task is running

PVMFTIDTOHOST(TID, DTID)

Eg

CALL PVMFTIDTOHOST(TID, HOSTID)

PVMFTRECV()

Receive with timeout

PVMFTRECV(TID, MSGTAG, SEC, USEC,BUFID)

PVMFTRECV blocks the process until a message, msgtag, has arrived from tid, it place the message in a new active receive buffer also clearing the current one.

PVMFSETRBUF()

Switches the active send buffer and saves the previous buffer

PVMFSETRBUF(BUFID, OLDBUF)

Eg CALL PVMFSETRBUF(NEWBUF, OLDBUF)

Setting and Getting Options

PVMFSETOPT(WHAT, VAL, OLDVAL)

PVMFGETOPT(WHAT, VAL)



Dynamic Configuration

PVMFADDHOST()

Adds a host to the virtual machine

PVMFADDHOST(HOST, INFO)

eg

CALL PVMFADDHOST(`pawnee-atm', INFO)

PVMFDELHOST()

Deletes a host to the virtual machine

PVMFDELHOST(HOST, INFO)

eg

CALL PVMFDELHOST(`pawnee-atm', INFO)

PVMFNOTIFY()

Request notification of PVM event

PVMFNOTIFY(WHAT, MSGTAG, CNT,

TIDS, INFO)

Eg

CALL PVMFNOTIFY (PVMHOSTDELETE,

1111,NPROC, TIDS, INFO)

PVMFKILL()

Terminates a specified PVM process

PVMFKILL(TID, INFO)

PVMFCONFIG()

Returns information about the present virtual machine configuration

PVMFCONFIG(NHOST, NARCH, DTID, NAME,

ARCH, SPEED, INFO)

Eg

DO i = 1, NHOST

CALL PVMFCONFIG(NHOST, NARCH,

DTID(i), HOST(i), ARCH(i), SPEED(i), INFO)

ENDDO

Error Handling



PVMFPERROR()

Prints the error status of the last PVM call

PVMFPERROR (MSG, INFO)

Eg

CALL PVMFSEND(TID, MSGTAG)

IF (INFO .LT. 0) THEN

CALL PVMFPERROR(`Step 1', INFO)

ENDIF

PVMFCATCHOUT()

Catch output from child tasks

PVMFCATCHOUT (ONOFF)

Eg

CALL PVMFCATCHOUT(1)

This switches output collection on 0 switches it off.

PVMFPSEND()

Pack and send data in one call

PVMFPSEND(TID, MSGTAG, BUF, LEN,

DATATYPE, INFO)

Eg

CALL PVMFPSEND(TID, MSGTAG, BUF, CNT,

REAL4, INFO)


[Next] [Previous] [Top]
All documents are the responsibility of, and copyright, © their authors and do not represent the views of The Parallel Computer Centre, nor of The Queen's University of Belfast.
Maintained by Alan Rea, email A.Rea@qub.ac.uk
Generated with CERN WebMaker