Hp XC System 3.x Software Manual de usuario Pagina 95

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 118
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 94
@ \
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
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
By modifying the makefile to reflect the changes illustrated above, we will now be processing each directory
serially and parallelize the individual makes within each directory. The modified Makefile is invoked as
follows:
$ make PREFIX=srun n1 N1 MAKE_J='-j4'
Example Procedure 2
Go through the directories in parallel and have the make procedure within each directory be serial.
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:
$(MAKE) $(MAKE_J) struct_matrix_vector/libHYPRE_mv.a
struct_linear_solvers/libHYPRE_ls.a utilities/libHYPRE_utilities.a
$(PREFIX) $(MAKE) -C test
Using the GNU Parallel Make Capability 95
Vista de pagina 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 117 118

Comentarios a estos manuales

Sin comentarios