Makefile::Parallel - A distributed parallel makefile


Makefile-Parallel documentation  | view source Contained in the Makefile-Parallel distribution.

Index


NAME

Top

Makefile::Parallel - A distributed parallel makefile

SYNOPSIS

Top

This module should not be called directly. Please see the perldoc of the pmake program on the /examples directory of this distribution.

process_makefile

Top

Main function. Accepts a file to parse and a hash reference with options.

TODO: Document options

journal_recover

Top

Tries to recover the journal of the last makefile run.

clean

Top

This function is responsible to clean all the temporary files created by the PBS system. It should be used only on the PBS scheduler method.

loop

Top

Loop it baby :D

reap_dead_bodies

Top

This function is responsible of reaping the jobs that are finnished. If the job needs to run something at the end (example, find i <- grep | awk...) it is executed and the job queue is expanded.

find_and_run_asShell

Top

This function goes through the finnished job and tries to find asShell commands to run, doing all the expands necessary

find_and_run_asPerl

Top

This function goes through the finnished job and tries to find asPerl commands to run, doing all the expands necessary

paction_list

Top

this function evaluates a perl action and retruns a list of strings. the action can:

 .return a ARRAY reference, 
 .print a list of lines to STDOUT (to be splited end chomped)
 .or return a string (to be splited and chomped)

expand_forks

Top

This function is responsible of expanding all the jobs when a variable is evaluated. It expands both forks and joins.

report

Top

Print a pretty report bla bla bla

dispatch

Top

This function is responsible for dispatching the jobs that can run.

is_finnished

Top

This function checks if the specified job is already done in the finnished list.

at_exit

Top

This sub is called at the program exit

write_journal

Top

Saves the scheduler state to disk.

calc_makefile_md5

Top

Calculates the MD5 of the current makefile

can_run_jub

Top

This one finds out if a job can run (all the dependencies are met).

launch

Top

Launch a process (really??)

graphviz

Top

Builds a preety graphviz file after the execution of the makefile

process_interrupt

Top

This function is called everytime the user send a SIGINT to this process. The objective is to kill all the running processes and wait for them to die.

AUTHOR

Top

Ruben Fonseca, <root@cpan.org>

Alberto Simões <ambs@cpan.org>

José João Almeida <jj@di.uminho.pt>

BUGS

Top

Please report any bugs or feature requests to bug-makefile-parallel@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Makefile-Parallel. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


Makefile-Parallel documentation  | view source Contained in the Makefile-Parallel distribution.