1 example procedure 1, Section 3.9.1.1 – HP XC System 2.x Software User Manual
Page 52
srcdir = .
HYPRE_DIRS =\
utilities\
struct_matrix_vector\
struct_linear_solvers\
test
all:
@ \
for i in ${HYPRE_DIRS}; \
do \
if [ -d $$i ]; \
then \
echo "Making $$i ..."; \
(cd $$i; make); \
echo ""; \
fi; \
done
clean:
@ \
for i in ${HYPRE_DIRS}; \
do \
if [ -d $$i ]; \
then \
echo "Cleaning $$i ..."; \
(cd $$i; make clean); \
fi; \
done
veryclean:
@ \
for i in ${HYPRE_DIRS}; \
do \
if [ -d $$i ]; \
then \
echo "Very-cleaning $$i ..."; \
(cd $$i; make veryclean); \
fi; \
done
3.9.1.1 Example Procedure 1
Go through the directories serially and have the make procedure within each directory be
parallel.
For the purpose of this exercise we are only parallelizing the “make all” component. The
“clean” and “veryclean” components can be parallelized in a similar fashion.
Modified makefile:
all:
@ \
for i ${HYPRE_DIRS}; \
do \
if [ -d $$i ]; \
then \
echo "Making $$i ..."; \
echo $(PREFIX) $(MAKE) $(MAKE_J) -C $$i; \
$(PREFIX) $(MAKE) $(MAKE_J) -C $$i;
\
fi; \
done
3-12
Developing Applications
- Scripting Toolkit for Linux (68 pages)
- Scripting Toolkit for Windows 9.50 (62 pages)
- Scripting Toolkit for Windows 9.60 (62 pages)
- Storage Area Manager (13 pages)
- Core HP-UX (5 pages)
- Matrix Operating Environment Software (95 pages)
- Matrix Operating Environment Software (152 pages)
- Matrix Operating Environment Software (264 pages)
- Matrix Operating Environment Software (138 pages)
- Matrix Operating Environment Software (137 pages)
- Matrix Operating Environment Software (97 pages)
- Matrix Operating Environment Software (33 pages)
- Matrix Operating Environment Software (142 pages)
- Matrix Operating Environment Software (189 pages)
- Matrix Operating Environment Software (58 pages)
- Matrix Operating Environment Software (68 pages)
- Matrix Operating Environment Software (79 pages)
- Matrix Operating Environment Software (223 pages)
- Matrix Operating Environment Software (136 pages)
- Matrix Operating Environment Software (34 pages)
- Matrix Operating Environment Software (63 pages)
- Matrix Operating Environment Software (67 pages)
- Matrix Operating Environment Software (128 pages)
- Matrix Operating Environment Software (104 pages)
- Matrix Operating Environment Software (75 pages)
- Matrix Operating Environment Software (245 pages)
- Matrix Operating Environment Software (209 pages)
- Matrix Operating Environment Software (71 pages)
- Matrix Operating Environment Software (239 pages)
- Matrix Operating Environment Software (107 pages)
- Matrix Operating Environment Software (77 pages)
- Insight Management-Software (148 pages)
- Matrix Operating Environment Software (80 pages)
- Insight Management-Software (128 pages)
- Matrix Operating Environment Software (132 pages)
- Matrix Operating Environment Software (74 pages)
- Matrix Operating Environment Software (76 pages)
- Matrix Operating Environment Software (233 pages)
- Matrix Operating Environment Software (61 pages)
- Matrix Operating Environment Software (232 pages)
- Matrix Operating Environment Software (70 pages)
- Matrix Operating Environment Software (120 pages)
- Matrix Operating Environment Software (36 pages)
- Matrix Operating Environment Software (99 pages)
- Matrix Operating Environment Software (192 pages)