Documentation:Distcc
From UGCS
Revision as of 04:16, 3 September 2009 by Jdhutchin@ugcs.caltech.edu (Talk | contribs)
Distcc
Distcc ( http://code.google.com/p/distcc/ ) is a program that lets you split compiles across multiple machines. All of our shellservers run distcc so you can compile your programs faster.
We also suggest the use of ccache to speed up repeat compilations.
How to use from UGCS
To use, simply prefix "gcc" with "distcc". You should also use the appropriate -m32 or -m64 flag to specify 32 or 64-bit compilation.
distcc gcc -m32 -o hi hi.c
You can tell make to use multiple threads with its -j option. For example,
CC=distcc CFLAGS=-m32 make -j 5
How to use from home
You can use distcc from your personal computer if you run it through ssh. To do this, add the following lines to ~/.distcc/hosts:
@lara.ugcs.caltech.edu @lethe.ugcs.caltech.edu @melpomene.ugcs.caltech.edu @minthe.ugcs.caltech.edu @polyhymnia.ugcs.caltech.edu @styx.ugcs.caltech.edu @thalia.ugcs.caltech.edu @urania.ugcs.caltech.edu
These lines will tell distcc to tunnel through ssh to the following hosts. You will have to have passwordless ssh set up for this to work.