...
Compiling DRMAA2 applications for PBS Pro
It is assumed that libdrmaa2.so or libdrmaa2.a is installed as follows prior to compiling a DRMAA2 application.
...
By default this will install the library to /usr/lib/libdrmaa2.*(so or a) and the headers are installed at /usr/include/drmaa2.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#include <drmaa2/c-binding/drmaa2.h> ... ... void main() { ... ... } |
Now DRMAA2 application can be compiled and run as follows.
gcc -I/usr/include/drmaa2 -L/usr/lib/libdrmaa2.so gcc <drmaa2_app>.c -ldrmaa2 -o <drmaa2_app> -ldrmaa2
We also need to set the following before starting the application if in case we are using shared library.
export LD_LIBRARY_PATH=/usr/lib/libdrmaa2.so ./<drmaa2_app>
IFL call mapping with C-Style and CPP-style binding
...
...