e.g.
tar -xf slurm-drmaa-1.0.7.tar.gz
cd slurm-drmaa-1.0.7
p=$(which srun)
p=${p%/bin/srun}/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$p"
./configure #CFLAGS="-g -O0"
make
sudo make install
# rm -r slurm-drmaa*
# Make the config file writeable by group_galaxy:
sudo touch /etc/slurm_drmaa.conf
sudo cp /etc/slurm_drmaa.conf /etc/slurm_drmaa.conf.original
sudo chown :group_galaxy /etc/slurm_drmaa.conf
sudo chmod g+w /etc/slurm_drmaa.conf
# Test the drmaa-run binary by submitting a small job:
export DRMAA_LIBRARY_PATH=/usr/local/lib/libdrmaa.so
echo 'echo "Test executed on host $(hostname) by user $USER"' > test.drmaa
drmaa-run bash test.drmaa
job_categories: {
default: "-J galaxy -p galaxy_partition",
},
<xml version="1.0"?>
<job_conf>
<plugins workers="10">
<plugin id="slurm" type="runner" load="galaxy.jobs.runners.slurm:SlurmJobRunner">
<param id="drmaa_library_path">/usr/local/lib/libdrmaa.so</param>
</plugin>
</plugins>
<handlers default="handlers">
<handler id="main" tags="handlers">
<plugin id="slurm"/>
</handler>
</handlers>
<destinations default="slurm_part">
<destination id="slurm_part" runner="slurm">
</destination>
<destination id="slurm_part_12" runner="slurm">
<param id="nativeSpecification">--ntasks=12</param>
</destination>
</destinations>
<tools>
<tool id="flexbar" destination="slurm_part_12"/>
<tool id="tophat2" destination="slurm_part_12"/>
<tool id="bowtie2" destination="slurm_part_12"/>
<tool id="bwa_wrapper" destination="slurm_part_12"/>
<!-- ... -->
</tools>
</job_conf>