DRMAA for PBS Pro
Source code for this library can be downloaded from http://sourceforge.net/projects/pbspro-drmaa/.
Please refer to the documentation that comes with the distribution for full instructions.
Some items of particular note:
- The The
--with-pbs=
parameter is used to specify the path to the PBS installation root. Theconfigure
script expects to be able to find lib/libpbs.a and include/pbs_ifl.h in the given root area, along with other files. - SSL is needed. The configure script expects that linking with "ssl" will work, thus libssl.so must be present in one of the system's library paths. On Red Hat and SUSE you will have to install openssl-devel packages to get that symlink (or create it yourself). The install procedure will install libdrmaa.so to the provided prefix (configure argument), which is the file the CLC Server needs to know about.
- Special steps need to be taken to compile DRMAA against PBS Pro 2021.1.1. These are outlined below.
The PBS DRMAA library can be configured to work in various modes as described in the README file of the pbs-drmaa source code. We have experienced the best performance, when the CLC Server has access to the PBS log files and pbs-drmaa is configured with wait_thread 1.
Compiling against PBS Pro 2021.1.1
To compile against PBS Pro 2021.1.1, a library (lsec) must be added in the configure
script included in the DRMAA distribution. We successfully compiled DRMMA from
http://sourceforge.net/projects/pbspro-drmaa/files/pbs-drmaa/1.0/pbs-drmaa-1.0.19.tar.gz/download against PBS Pro 2021.1.1 by doing the following:
- Ran the command
sed -i 's/\-lpbs/\-lpbs\ \-lsec/g' configure
- Ran the command
./configure --with-pbs=/PATH/TO/PBS
- Ran the
make
command.make fails at this point.
Step through the same commands a second time:
sed -i 's/\-lpbs/\-lpbs\ \-lsec/g' configure
./configure --with-pbs=/PATH/TO/PBS
make
make should succeed this time.
- Then, with appropriate privileges, in our case, root privileges, we ran
make install