Wiki
Clone wikiCS5220-S14 / upc-htc
Running UPC jobs on C4
There are two main methods to run UPC jobs on C4
- Compile in purely multi-threaded mode (
network=smp
) - Compile with UDP across nodes (
network=udp
)
For the first option, compile with the options
upcc -network=smp -pthreads
and run as a normal HTCondor submission. In the second case, the
simplest approach is to use the upcsub
script, which is exactly
analogous to mpisub
; see also the
documentation on using MPI on C4.
The error, output, and log files are saved as upcsub-XXXX-X.*
.
There are other options as well, such as mixing UDP for cross-node
communication with threads for in-node communication. The Makefile
in the basic/upc
subdirectory gives an example of how to do this.
Note that whether you use the SMP mode or the UDP mode, you will need to have the UPC module loaded both for compilation and for running the program.
Updated