help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make and Clusters


From: David Delahaye
Subject: Re: Make and Clusters
Date: Fri, 13 Oct 2017 11:35:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hello,

Thanks a lot to everyone for the numerous clues.

Best regards,

David.

Le 10/10/2017 à 18:55, Shaun Jackman a écrit :
Hi, David. Two options:

1. Use Biomake, which is mostly compatible with GNU Make, and supports submitting jobs to Slurm.
https://github.com/evoldoers/biomake

It can be installed with Linuxbrew on Linux or Homebrew on macOS.
brew install homebrew/science/biomake

2. Precede each command that you want to run on the cluster with $qsub. Set that variable qsub to submit a job and wait for it to finish. For example:

# Slurm
qsub=sbatch --wait

# SGE
qsub=qsub -sync y

# PBS
qsub=qsub -Wblock=true

I haven't tried but it seems possible that you could set the variables SHELL and .SHELLFLAGS to run qsub for every command. See https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html

Cheers,
Shaun

--

David Delahaye

Professor
Université de Montpellier
LIRMM (UMR 5506)
address@hidden
Phone: (+33) (0)4 67 41 86 01
http://www.lirmm.fr/~delahaye/ <http://www.lirmm.fr/%7Edelahaye/>         


Université de Montpellier • LIRMM UMR 5506 • CC477
161 rue Ada • 34095 Montpellier Cedex 5 • France



reply via email to

[Prev in Thread] Current Thread [Next in Thread]