Date: Tue, 14 Dec 1999 20:59:40 -0600 From: Kris Kirby <kris@hiwaay.net> To: hackers@freebsd.org Subject: Using make to allow parallel operations? Message-ID: <3857041C.146D0F35@hiwaay.net>
next in thread | raw e-mail | index | archive | help
I am attempting to start a program on a impromptu cluster, one program
per machine. I am using make, and seq from the cluster-it package in the
ports collection. My problem is that make doesn't start the jobs
parallel, it just goes from one to the other.
In my project root, I have the following makefile:
SUBDIR = 1 2 3 4 5 6 7 8 9
.include <bsd.subdir.mk>
In my SUBDIRs, I have these makefiles:
PROG = seq ls -la
PAF = ${.CURDIR}
all:
@for prog in ${OBJ} ; do \
${PROG} ${PAF}/$$prog ; \
done
OBJ = Track01.wav \
Track02.wav
I am thinking that the for loop is not the way to run things parallel,
but I see no other option. This is a batch MP3 encode, not a compling
run, but the concepts are similar (programs and thier arguments).
I appreciate any time taken and hints offered.
[Why -hackers? Well, I don't have a copy of the CVS log, so I can't go
bother whoever built the makefiles in /usr/src ;-)]
--
Kris Kirby, KE4AHR
<kris@nospam.hiwaay.net>
-------------------------------------------
TGIFreeBSD... 'Nuff said.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3857041C.146D0F35>
