📄 p4refcard.ps
字号:
/BITMAPGRAYc { 8 {fakecolorsetup} COMMONBITMAPc } bind def/ENDBITMAP { } bind defend /ALDsave FMLOCAL /ALDmatrix matrix def ALDmatrix currentmatrix pop/StartALD { /ALDsave save def savematrix ALDmatrix setmatrix } bind def/InALD { restorematrix } bind def/DoneALD { ALDsave restore } bind def%%EndProlog%%BeginSetup(3.0) FMVERSION1 1 612 792 0 1 5 FMDOCUMENT0 0 /Times-Bold FMFONTDEFINE1 0 /Times-Roman FMFONTDEFINE32 FMFILLS0 0 FMFILL1 .1 FMFILL2 .3 FMFILL3 .5 FMFILL4 .7 FMFILL5 .9 FMFILL6 .97 FMFILL7 1 FMFILL8 <0f1e3c78f0e1c387> FMFILL9 <0f87c3e1f0783c1e> FMFILL10 <cccccccccccccccc> FMFILL11 <ffff0000ffff0000> FMFILL12 <8142241818244281> FMFILL13 <03060c183060c081> FMFILL14 <8040201008040201> FMFILL16 1 FMFILL17 .9 FMFILL18 .7 FMFILL19 .5 FMFILL20 .3 FMFILL21 .1 FMFILL22 0.03 FMFILL23 0 FMFILL24 <f0e1c3870f1e3c78> FMFILL25 <f0783c1e0f87c3e1> FMFILL26 <3333333333333333> FMFILL27 <0000ffff0000ffff> FMFILL28 <7ebddbe7e7dbbd7e> FMFILL29 <fcf9f3e7cf9f3f7e> FMFILL30 <7fbfdfeff7fbfdfe> FMFILL%%EndSetup%%Page: "3" 3%%BeginPaperSize: Letter%%EndPaperSize612 792 0 FMBEGINPAGE0 16 Q0 X0 K(P4 QUICK REFERENCE) 217.43 763.29 T1 14 Q(Fortran Library) 99 746.46 T(Function Description) 403.46 746.46 T1 7 Q(Steve Slater) 21.02 13.23 T(, UC Berkeley) 54.32 13.23 T1 9 Q(call p4init\050\051) 21.6 721.9 T(call p4crpg\050\051) 21.6 710.9 T(int = p4myid\050\051) 21.6 699.9 T(int = p4ntotids\050\051) 21.6 688.9 T(int = p4nslaves\050\051) 21.6 677.9 T(call p4cleanup\050\051) 21.6 666.9 T(int = p4myclid\050\051) 21.6 633.9 T(int = p4nclids\050\051) 21.6 622.9 T(call p4getclids\050istart,iend\051) 21.6 611.9 T(call p4send\050itype,idest,msg,len.irc\051) 21.6 578.9 T(call p4sendr\050itype,idest,msg,len,irc\051) 21.6 567.9 T(call p4sendx\050itype,idest,msg,len,data_type,irc\051) 21.6 556.9 T(call p4sendrx\050itype,idest,msg,len,data_type,irc\051) 21.6 545.9 T(call p4probe\050itype,ifrom.irc\051) 21.6 534.9 T(call p4recv\050itype,ifrom,buf,ibu\337en,msglen,irc\051) 21.6 523.9 T(call p4brdcst\050itype,data,ilen,irc\051) 21.6 490.9 T(call p4brdcstx\050itype,data,ilen,idata_type,irc\051) 21.6 479.9 T(call p4globarr\050itype\051) 21.6 468.9 T(call p4globop\050itype,x,nelem,isize,op,idata_type,irc\051) 21.6 457.9 T(where op is one of:) 35.1 446.9 T(p4\050int/dbl/\337t\051absmaxop\050\051) 53.75 435.9 T(p4\050int/dbl/\337t\051absminop\050\051) 53.75 424.9 T(p4\050int/dbl/\337t\051maxop\050\051) 53.75 413.9 T(p4\050int/dbl/\337t\051minop\050\051) 53.75 402.9 T(p4\050int/dbl/\337t\051multop\050\051) 53.75 391.9 T(p4\050int/dbl/\337t\051sumop\050\051) 53.75 380.9 T(int = p4clock\050\051) 21.6 347.9 T(int = p4ustimer\050\051) 21.6 336.9 T(call p4error\050str) 21.6 303.9 T(,ival\051) 74.89 303.9 T(call p4softerrs\050new) 21.6 292.9 T(,iold\051) 90.15 292.9 T(call p4\337ush\050\051) 21.6 281.9 T(call p4version\050\051) 21.6 248.9 T(call p4getclmasts\050numids,ids\051) 21.6 237.9 T(call p4avlbufs\050\051) 21.6 226.9 T(call p4setavlbuf\050idx,isize\051) 21.6 215.9 T(Initialize p4 environment) 309.6 721.9 T(Create \322p4-managed processes\323) 309.6 710.9 T(Returns unique process id integer) 309.6 699.9 T(Returns integer value for total # of ids) 309.6 688.9 T(Returns integer value for total # of processes) 309.6 677.9 T(T) 309.6 666.9 T(ermination/cleanup process for end of program) 314.46 666.9 T(Returns integer cluster id) 309.6 633.9 T(Returns integer number of ids in cluster) 309.6 622.9 T(Istart and iend contain p4 ids of the \336rst and last ids within the current cluster) 309.6 611.9 T(.) 587.44 611.9 T(Send and return immediately) 309.6 578.9 T(Send and wait for acknowledgment \050rendezvous\051) 309.6 567.9 T(Send and use XDR for data conversion) 309.6 556.9 T(Send and wait with XDR) 309.6 545.9 T(Indicate if message of req_type are available from process req_from) 309.6 534.9 T(Receive message of itype from ifrom into buf) 309.6 523.9 T(Broadcast messages to all processes) 309.6 490.9 T(Broadcast messages with XDR conversion) 309.6 479.9 T(Causes invoking process to hang until all processes have executed barrier) 309.6 468.9 T(Perform the same operation on all processes) 309.6 457.9 T(absmax of data pointed to by x) 309.6 435.9 T(absmin of data pointed to by x) 309.6 424.9 T(max of data pointed to by x) 309.6 413.9 T(min of data pointed to by x) 309.6 402.9 T(commutative multiplication of data pointed to by x) 309.6 391.9 T(commutative summation of data pointed to by x) 309.6 380.9 T(Returns wall-clock value in milliseconds, usually via gettimeofday) 309.6 347.9 T(Returns wall-clock value in microseconds) 309.6 336.9 T(Prints string then forcefully terminates all co-operating processes) 309.6 303.9 T(Enables/disables soft errors, default is disabled) 309.6 292.9 T(Forces printing of standard output \050calls f) 309.6 281.9 T(\337ush\050stdout\051\051) 458.71 281.9 T(Prints the version number of p4 being run to stdout) 309.6 248.9 T(Returns number of cluster masters in numids and their p4-ids in ids[]) 309.6 237.9 T(Prints contents of the buf) 309.6 226.9 T(fer pools) 399.81 226.9 T(Sets the size of buf) 309.6 215.9 T(fers in p4\325) 377.83 215.9 T(s buf) 414.28 215.9 T(fer pools) 431.84 215.9 T18 22.5 594 742.5 R0.5 H2 ZN18 729 594 729 2 LN18 657 594 657 2 LN18 643.5 594 643.5 2 LN18 603 594 603 2 LN18 589.5 594 589.5 2 LN18 499.5 594 499.5 2 LN18 513 594 513 2 LN18 369 594 369 2 LN18 355.5 594 355.5 2 LN18 328.5 594 328.5 2 LN18 315 594 315 2 LN18 274.5 594 274.5 2 LN18 261 594 261 2 LN0 F(PROCESS MANAGEMENT) 250.57 733.72 T(CLUSTER MANAGEMENT) 249.17 647.83 T(MESSAGE P) 264.17 593.67 T(ASSING) 315.19 593.67 T(GLOBAL OPERA) 256.67 503.67 T(TIONS) 328.16 503.67 T(TIMING FUNCTIONS) 259.17 359.5 T(DEBUGGING FUNCTIONS) 249.17 319.5 T(MISCELLANEOUS FUNCTIONS) 237.5 264.5 TFMENDPAGE%%EndPage: "3" 2%%Page: "2" 2612 792 0 FMBEGINPAGE0 16 Q0 X0 K(P4 QUICK REFERENCE) 217.43 763.29 T1 14 Q(Shared Memory Library) 84.5 746.46 T(Function Description) 403.46 746.46 T1 7 Q(Steve Slater) 21.02 13.23 T(, UC Berkeley) 54.32 13.23 T1 9 Q(char *p4_malloc\050int n\051) 21.6 710 T(VOID p4_free\050char *p\051) 21.6 699 T(char *p4_shmalloc\050int n\051) 21.6 688 T(VOID p4_shfree\050\051) 21.6 677 T(int p4_moninit\050p4_monitor_t *m,int i\051) 21.6 644 T(VOID p4_menter\050p4_monitor_t *m\051) 21.6 633 T(VOID p4_mexit\050p4_monitor_t *m\051) 21.6 622 T(VOID p4_mcontinue\050p4_monitor_t *m,int i\051) 21.6 611 T(VOID p4_mdelay\050p4_monitor_t *m,int i\051) 21.6 600 T(VOID p4_lock_init\050p4_lock_t *l\051) 21.6 567 T(VOID p4_lock\050p4_lock_t *l\051) 21.6 556 T(VOID p4_unlock\050p4_lock_t *l\051) 21.6 545 T(VOID p4_getsub\050p4_getsub_monitor_t *gs, int *s,int max,int nprocs\051) 21.6 534 T(VOID p4_getsubs\050p4_getsub_monitor_t *gs, int *s,int max,int nprocs,int) 21.6 523 T(stride\051) 36 512 T(int p4_getsub_init\050p4_getsub_monitor_t *gs\051) 21.6 501 T(VOID p4_barrier\050p4_barrier_monitor_t *b,int nprocs\051) 21.6 490 T(int p4_barrier_init\050p4_barrier_monitor_t *b\051) 21.6 479 T(int p4_askfor\050p4_askfor_monitor_t *af,int nprocs,int \050*getprob_fxn\051\050\051,VOID) 21.6 468 T(*problem,int \050*reset_fxn\051\050\051\051) 36 457 T-0.07 (int p4_update\050p4_askfor_monitor_t *af,int \050*putprob_fxn\051\050\051,VOID *problem\051) 21.6 446 P(int p4_askfor_init\050p4_askfor_monitor_t *af\051) 21.6 435 T(VOID p4_probend\050p4_askfor_monitor_t *af,int code\051) 21.6 424 T(VOID p4_progend\050p4_askfor_monitor_t *af\051) 21.6 413 T(Acts like malloc) 309.6 710 T(Acts like free) 309.6 699 T(Acts like malloc except obtains shared memory locations) 309.6 688 T(Frees shared memory obtained from p4_shmalloc) 309.6 677 T(Initialize the monitor pointed to by m and gives it i queues for processes) 309.6 644 T(Enter the monitor pointed to by m) 309.6 633 T(Exit the monitor pointed to by m) 309.6 622 T(Check for processes blocked on ith queue of m and release one of them) 309.6 611 T(Permits a process to delay itself on the ith queue of monitor m) 309.6 600 T(Initializes the lock to l) 309.6 567 T(Blocks if the lock l is already locked, otherwise locks l and proceeds) 309.6 556 T(Unlocks the lock l) 309.6 545 T(Obtains the next value of a shared counter and increments counter by one) 309.6 534 T(Like p4_getsub but increases counter by stride) 309.6 523 T(Initializes the getsub monitor pointed to by gs) 309.6 501 T(Causes the executing process to hand until nprocs processes invoke barrier) 309.6 490 T(Initializes the barrier monitor b) 309.6 479 T(Acts like a general dispatcher of work. Requests a new \322problem\323 to work on) 309.6 468 T(from the problem pool.) 309.6 457 T(Updates the problem pool being managed by the askfor monitor af) 309.6 446 T(Initializes the askfor monitor af) 309.6 435 T(Allows the user process to mark a problem as solved early) 309.6 424 T(Allows a process to cause a return code of \050-1\051 to all processes using af) 309.6 413 T0 F(MEMOR) 247.5 727.48 T(Y MANAGEMENT) 283.63 727.48 T18 22.5 594 738 R0.5 H2 ZN18 724.5 594 724.5 2 LN18 670.5 594 670.5 2 LN18 657 594 657 2 LN18 594 594 594 2 LN18 580.5 594 580.5 2 LN(MONIT) 232.14 661.24 T(OR BUILDING PRIMITIVES) 263.44 661.24 T(SOME USEFUL MONIT) 245.71 584.14 T(ORS) 343.43 584.14 TFMENDPAGE%%EndPage: "2" 1%%Page: "1" 1612 792 0 FMBEGINPAGE0 16 Q0 X0 K(P4 QUICK REFERENCE) 217.43 763.29 T1 14 Q(C Library) 126 746.46 T(Function Description) 403.46 746.46 T1 7 Q(Steve Slater) 22.5 13.23 T(, UC Berkeley) 55.8 13.23 T1 9 Q(int p4_initenv\050int *ar) 21.6 721 T(gc, char **ar) 97.83 721 T(gv\051) 144.33 721 T(int p4_create\050int \050*fxn\051 \050\051\051) 21.6 710 T(int p4_create_procgroup\050\051) 21.6 699 T(int p4_get_my_id\050\051) 21.6 688 T(int p4_num_total_ids\050\051) 21.6 677 T(int p4_num_total_slaves\050\051) 21.6 666 T(VOID p4_wait_for_end\050\051) 21.6 655 T(BOOL p4_am_i_cluster_master\050\051) 21.6 622 T(int p4_get_my_cluster_id\050\051) 21.6 611 T(int p4_num_cluster_ids\050\051) 21.6 600 T(VOID p4_get_cluster_ids\050int *start,int *end\051) 21.6 589 T(p4_send\050int type,int to,char *msg,int len\051) 21.6 556 T(p4_sendr\050int type,int to,char *msg,int len\051) 21.6 545 T(p4_sendx\050int type,int to,char *msg,int len,datatype\051) 21.6 534 T(p4_sendrx\050int type,int to,char *msg,int len,datatype\051) 21.6 523 T(p4_sendb\050int type,int to,char *msg,int len\051) 21.6 512 T(p4_sendbr\050int type,int to,char *msg,int len\051) 21.6 501 T(p4_sendbx\050int type,int to,char *msg,int len,datatype\051) 21.6 490 T(p4_sendbrx\050int type,int to,char *msg,int len,datatype\051) 21.6 479 T(datatype = P4INT) 35.1 468 T(, P4LNG, P4FL) 98.91 468 T(T) 155.01 468 T(, or P4DBL) 159.84 468 T(BOOL p4_messages_available\050int *req_type, int *req_from\051) 21.6 446 T(int p4_recv\050int *req_type, int *req_from, char **msg, int *len_rcvd\051) 21.6 435 T(char *p4_msg_alloc\050int len\051) 21.6 424 T(VOID p4_msg_free\050char *m\051) 21.6 413 T(p4_broadcast\050int type, char *data, int data_len\051) 21.6 380 T(p4_broadcastx\050int type, char *data, int data_len, int data_type\051) 21.6 369 T(p4_global_barrier\050int type\051) 21.6 358 T(p4_global_op\050int type, char *x, int size, int nelem, op, int data_type\051) 21.6 347 T(where op is one of:) 35.1 336 T(p4_\050int/dbl/\337t\051_absmax_op\050\051) 53.75 325 T(p4_\050int/dbl/\337t\051_absmin_op\050\051) 53.75 314 T(p4_\050int/dbl/\337t\051_max_op\050\051) 53.75 303 T(p4_\050int/dbl/\337t\051_min_op\050\051) 53.75 292 T(p4_\050int/dbl/\337t\051_mult_op\050\051) 53.75 281 T(p4_\050int/dbl/\337t\051_sum_op\050\051) 53.75 270 T(int p4_clock\050\051) 21.6 237 T(p4_usc_time_t p4_ustimer\050\051) 21.6 226 T(p4_usc_time_t p4_usrollover\050\051) 21.6 215 T(p4_usc_time_t is de\336ned as an unsigned long int) 35.1 204 T(int p4_get_dbg_level\050\051) 21.6 171 T(VOID p4_set_dbg_level\050int level\051) 21.6 160 T(VOID p4_dprintf\050char *fmt, va_alist\051) 21.6 149 T(VOID p4_dprint\337\050int level, char *fmt, va_alist\051) 21.6 138 T(VOID p4_error\050char *string, int value\051) 21.6 127 T(VOID p4_soft_errors\050int onof) 21.6 116 T(f\051) 129.76 116 T(char *p4_version\050\051) 21.6 83 T(VOID p4_get_cluster_masters\050int *numids, int ids[]\051) 21.6 72 T(VOID p4_print_avail_buf) 21.6 61 T(fers\050\051) 115.04 61 T(VOID p4_set_avail_buf) 21.6 50 T(f\050int bu\336dx, int size\051) 108.05 50 T(Initialize p4 environment) 309.6 721 T(Create \322user) 309.6 710 T(-managed\323 p4 processes) 354.09 710 T(Create \322p4-managed processes\323) 309.6 699 T(Returns unique process id integer) 309.6 688 T(Returns integer value for total # of ids) 309.6 677 T(Returns integer value for total # of processes) 309.6 666 T(T) 309.6 655 T(ermination/cleanup process for end of program) 314.46 655 T(Determine if process is \322cluster master\323) 309.6 622 T(Returns integer cluster id) 309.6 611 T(Returns integer number of ids in cluster) 309.6 600 T(Start and End contain p4 ids of the \336rst and last ids within the current cluster) 309.6 589 T(.) 584.95 589 T(Send and return immediately) 309.6 556 T(Send and wait for acknowledgment \050rendezvous\051) 309.6 545 T(Send and use XDR for data conversion) 309.6 534 T(Send and wait with XDR) 309.6 523 T(Send using msg in buf) 309.6 512 T(fer created by p4_msg_alloc\050\051) 389.83 512 T(Send with buf) 309.6 501 T(fer and acknowledgment) 359.87 501 T(Send with buf) 309.6 490 T(fer and XDR) 359.87 490 T(Send with buf) 309.6 479 T(fer) 359.87 479 T(, acknowledgment, and XDR.) 369.48 479 T(Indicate if message of req_type are available from process req_from) 309.6 446 T(Receive message of req_type from req_from into **msg \050allocates if NULL\051) 309.6 435 T(Returns pointer to buf) 309.6 424 T(fer area used to receive message of len bytes) 388.57 424 T(Frees message pointed to by m) 309.6 413 T(Broadcast messages to all processes) 309.6 380 T(Broadcast messages with XDR conversion) 309.6 369 T(Causes invoking process to hang until all processes have executed barrier) 309.6 358 T(Perform the same operation on all processes) 309.6 347 T(absmax of data pointed to by x) 309.6 325 T(absmin of data pointed to by x) 309.6 314 T(max of data pointed to by x) 309.6 303 T(min of data pointed to by x) 309.6 292 T(commutative multiplication of data pointed to by x) 309.6 281 T(commutative summation of data pointed to by x) 309.6 270 T(Returns wall-clock value in milliseconds, usually via gettimeofday) 309.6 237 T(Returns wall-clock value in microseconds) 309.6 226 T(Returns the timer value at which microsecond timer \322rolls over\323) 309.6 215 T(Returns current debug level) 309.6 171 T(Sets current debug level for this process and its cluster) 309.6 160 T(Printf preceded by value that identi\336es the process) 309.6 149 T(Like dprintf but debug level must by higher than level to print) 309.6 138 T(Prints string then forcefully terminates all co-operating processes) 309.6 127 T(Enables/disables soft errors, default is disabled) 309.6 116 T(Returns string containing the version number of p4 being run) 309.6 83 T(Returns number of cluster masters in numids and their p4-ids in ids[]) 309.6 72 T(Prints contents of the buf) 309.6 61 T(fer pools) 399.81 61 T(Sets the size of buf) 309.6 50 T(fers in p4\325) 377.83 50 T(s buf) 414.28 50 T(fer pools) 431.84 50 T18 22.5 598.5 742.5 R0.5 H2 ZN0 F(PROCESS MANAGEMENT) 249.12 733.41 T18 729.11 598.5 729.11 2 LN(CLUSTER MANAGEMENT) 249.86 638.16 T18 648 598.5 648 2 LN18 634.5 598.5 634.5 2 LN18 585 598.5 585 2 LN18 571.5 598.5 571.5 2 LN(MESSAGE P) 263.29 574.57 T(ASSING) 314.31 574.57 T18 405 598.5 405 2 LN18 391.5 598.5 391.5 2 LN(GLOBAL OPERA) 256.43 394.86 T(TIONS) 327.92 394.86 T18 261 598.5 261 2 LN18 247.5 598.5 247.5 2 LN(TIMING FUNCTIONS) 259.29 251.28 T18 198 598.5 198 2 LN18 184.5 598.5 184.5 2 LN(DEBUGGING FUNCTIONS) 250 188.43 T18 108 598.5 108 2 LN18 94.5 598.5 94.5 2 LN(MISCELLANEOUS FUNCTIONS) 239 98.74 TFMENDPAGE%%EndPage: "1" 0%%Trailer%%BoundingBox: 0 0 612 792%%Pages: 3 -1%%DocumentFonts: Times-Bold%%+ Times-Roman
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -