Index of /download/dist/upc-examples

[ICO]NameLast modifiedSize

[PARENTDIR]Parent Directory  -
[DIR]upc_collectivev/2022-10-28 13:54 -
[DIR]upc-tutorial/2022-10-28 13:54 -
[DIR]psearch/2022-10-28 13:54 -
[DIR]pearls/2022-10-28 13:54 -
[DIR]mg/2022-10-28 13:54 -
[DIR]mcop/2022-10-28 13:54 -
[DIR]laplace/2022-10-28 13:54 -
[DIR]interoperability/2022-10-28 13:54 -
[DIR]guppie/2022-10-28 13:54 -
[DIR]doublereduce/2022-10-28 13:54 -
[DIR]cpi/2022-10-28 13:54 -
[DIR]RandomAccess/2022-10-28 13:54 -
[DIR]HPCS/2022-10-28 13:56 -
[DIR]AHPCRC-benchmarks/2022-10-28 13:54 -
[   ]lock_table.upc2022-10-28 13:54 1.8K
[   ]hello.upc2022-10-28 13:54 241
[TXT]README2022-10-28 13:54 1.4K
[   ]Makefile2022-10-28 13:54 465

UPC examples:

Note that most of the code in this subdirectory tree was contributed by
outside sources, and the Berkeley UPC group makes no claims of
correctness, optimality or suitability of this code for any purposes.

In particular, be aware that the Makefiles provided may not be
setup appropriately for Berkeley UPC.

--
cpi:
Two different methods for approximating pi.
cpi.upc uses the midpoint rule to integrate 4/(1+x^2) in the interval
[0,1].  This program takes one optional argument, the number of
intervals each thread should use for the integration.

mcpi.upc fires darts at the unit circle in an attempt to compute its
area. It also takes an optional argument, the total number of trials
to use.
--
doublereduce:
doublereduce.upc shows how one can implement a tree-based reduction in
UPC.  Of particular interest is the use of polling to wait for message
arrivals.  It takes no arguments, but the number of threads must be a power
of 2.
--
laplace:
stencil.upc illustrates different methods of computing a simple 1-d
stencil operation using shared arrays.  Takes no arguments.
--
mg:
The NAS MG code, class B, written in UPC style.  Takes no arguments.
The number of threads is recommended to be a power of 2.
--

To run these examples in each individual directory
cd <dir>
gmake run THREADS=<no of threads>

To run all examples
gmake runall THREADS=<no of threads>
in this directory.