[slurm-users] x11 for interactive jobs
Mahmood Naderan
mahmood.nt at gmail.com
Tue May 15 12:35:30 MDT 2018
Hi,
I followed the steps described in [1]. However, srun still says --x11
is not a valid option. Should I restart slurm processes? That is not
mentioned in that document.
[root at rocks7 ~]# git clone https://github.com/hautreux/slurm-spank-x11
Cloning into 'slurm-spank-x11'...
remote: Counting objects: 28, done.
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28
Unpacking objects: 100% (28/28), done.
[root at rocks7 ~]# cd slurm-spank-x11/
[root at rocks7 slurm-spank-x11]# grep "define X11_" slurm-spank-x11.c
#define X11_LIBEXEC_PROG "/usr/libexec/slurm-spank-x11"
[root at rocks7 slurm-spank-x11]# grep "define X11_LIBEXEC_PROG"
slurm-spank-x11-plug.c
#define X11_LIBEXEC_PROG "/usr/libexec/slurm-spank-x11"
[root at rocks7 slurm-spank-x11]# gcc -g -o slurm-spank-x11 slurm-spank-x11.c
[root at rocks7 slurm-spank-x11]# gcc -g -shared -fPIC -o x11.so
slurm-spank-x11-plug.c
[root at rocks7 slurm-spank-x11]# install -m 755 slurm-spank-x11 /usr/libexec/
[root at rocks7 slurm-spank-x11]# install -m 755 x11.so /lib64/slurm/
[root at rocks7 slurm-spank-x11]# echo -e "optional\tx11.so" >> ./plugstack.conf
[root at rocks7 slurm-spank-x11]# ls -l /usr/libexec/slurm-spank-x11
-rwxr-xr-x 1 root root 22328 May 15 23:00 /usr/libexec/slurm-spank-x11
[root at rocks7 slurm-spank-x11]# ls -l /lib64/slurm/x11.so
-rwxr-xr-x 1 root root 39544 May 15 23:00 /lib64/slurm/x11.so
[root at rocks7 slurm-spank-x11]# srun --x11
srun: unrecognized option '--x11'
srun: unrecognized option '--x11'
Try "srun --help" for more information
Any idea?
[1] https://slurm.schedmd.com/faq.html#x11
Regards,
Mahmood
More information about the slurm-users
mailing list