[Discuss] I need a recommendation for a Linux-compatible high-end PC builder

pw p.willis at telus.net
Fri Jan 12 07:01:39 PST 2018


I'm not using 'make' in parallel.

I thought 'make -j'  distributed groups of make instructions under each 
heading called a 'recipe' or something.

Wouldn't that be dangerous if there were subdependencies, or does
'make -j' recurse first automatically?

The models we are using are single applications using finite element.
(ie: metis. parmetis,  et al )  So the application calls OpenMPI etc.
for resources up to the limit of the defined pool for the job.


My guess is that 'make -j' using a job definition would be more like:


#!/bin/bash

NUMPROCS=48

MAKEPATH=/my/full/makefile/path/Makefile

mpiexec -n $NUMPROCS  make -j $NUMPROCS -f $MAKEPATH test_everything



I'm unsure if that would work because the mpiexec expects a program 
compiled with MPI libraries.

Is GNU 'make' compiled with OpenMPI/MPICH these days?
I thought GNU make used pipes, not message passing, and just relied on 
the operating system SMP architecture to make processes under some kind 
of job-server strategy.

I would need to look at the source code build flags for GNU make to see
how that worked.


P



More information about the Discuss mailing list