---
name: "p4"
section: "1"
platform: "linux"
package: "mpich"
version: "1.2.1-16"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/p4"
---

# p4(1)

portable programs for parallel processors - release 1.4

## NAME

p4 - portable programs for parallel processors - release 1.4

## DESCRIPTION

p4 is a package of procedures that support development of parallel programs in C or Fortran that are portable across a wide variety of architectures.  For the shared-memory model of parallel computation, p4 provides a set of primitives from which monitors can be constructed, as well as a set of useful monitors.  For the distributed-memory model, p4 provides typed send and receive operations, and creation of processes according to a text file describing files to be executed on by created processes and the machines to execute them on.  A complete User's Guide is available in the doc subdirectory of the p4 distribution.  It is written in LaTeXinfo, so that it can produce either an info file (included) or a printed version.

## SYNOPSIS

\#include "p4.h"

## OPTIONS

Several command line options are available to any program linked to  the p4 package.

- \-p4help get this information

  - \-p4pg \<filename\> procgroup file

  - \-p4dbg n set debug level

  - \-p4rdbg n set remote debug level

  - \-p4gm n set globmemsize

  - \-p4dmn \<name\> domainname

  - \-p4out \<file\> output file for master

  - \-p4rout \<file\> output file prefix for remote masters

  - \-p4ssport \<port#\> private port number for secure server

  - \-p4log enable internal p4 logging by alog

  - \-p4version print the current p4 version number

  - \-p4norem prompt user to start remote processes by hand

  ## FILES

p4.h, libp4.a - see your systems administrator for the installed location

## DIAGNOSTICS

p4 generates a wide variety of diagnostic messages.  See the user manual for more details.

## EXAMPLE EXECUTION

To invoke a program linked with p4 using a procgroup file:

```
myprogram -pg procgroup_file_name
```

## SEE ALSO

**socket,**etc.

## BUGS

There are no *known* bugs at this time, but stay tuned.
