hautreux / slurm-spank-x11 Goto Github PK
View Code? Open in Web Editor NEWX11 SLURM spank plugin enables to export X11 display on a part or all of the allocated nodes of SLURM jobs using openSSH.
License: GNU General Public License v3.0
X11 SLURM spank plugin enables to export X11 display on a part or all of the allocated nodes of SLURM jobs using openSSH.
License: GNU General Public License v3.0
I followed the installation instructions at https://slurm.schedmd.com/faq.html#x11
adapting paths for the local installation.
Compiling the plugin against the SLURM packages provided by Ubuntu
16.04 produces these warnings about implicit function declaration::
$ gcc -g -I/usr/include/slurm/ -shared -fPIC -o x11.so slurm-spank-x11-plug.c
slurm-spank-x11-plug.c: In function ‘xpopen’:
slurm-spank-x11-plug.c:140:7: warning: implicit declaration of function ‘setresgid’ [-Wimplicit-function-declaration]
if (setresgid(egid,-1,egid) || setresuid(euid,-1,euid))
^
slurm-spank-x11-plug.c:140:34: warning: implicit declaration of function ‘setresuid’ [-Wimplicit-function-declaration]
if (setresgid(egid,-1,egid) || setresuid(euid,-1,euid))
^
slurm-spank-x11-plug.c: In function ‘slurm_spank_init’:
slurm-spank-x11-plug.c:183:13: warning: implicit declaration of function ‘_spank_x11_get_mode’ [-Wimplicit-function-declaration]
x11_mode = _spank_x11_get_mode(sp,ac,av);
^
slurm-spank-x11-plug.c: In function ‘slurm_spank_local_user_init’:
slurm-spank-x11-plug.c:249:11: warning: implicit declaration of function ‘_x11_connect_nodes’ [-Wimplicit-function-declaration]
status = _x11_connect_nodes(job_ptr->nodes,jobid,stepid);
^
slurm-spank-x11-plug.c: In function ‘_x11_init_remote_batch’:
slurm-spank-x11-plug.c:368:17: warning: implicit declaration of function ‘error’ [-Wimplicit-function-declaration]
error("x11: unable to get username for uid=%u : %s",job_ptr->user_id,
^
The resulting SPANK plugin dies with segmentation fault.
Here is data about compiler and system packages::
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ dpkg-query -l 'slurm*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================-=======================-=======================-===============================================================================
ii slurm-client 15.08.7-1build1 amd64 SLURM client side commands
ii slurm-drmaa-dev 1.0.7-1build3 amd64 PSNC DRMAA for SLURM - devel
ii slurm-drmaa1 1.0.7-1build3 amd64 PSNC DRMAA for SLURM - runtime
ii slurm-wlm-basic-plugins 15.08.7-1build1 amd64 SLURM basic plugins
ii slurm-wlm-torque 15.08.7-1build1 all Torque compatibility wrappers for SLURM
ii slurmctld 15.08.7-1build1 amd64 SLURM central management daemon
ii slurmdbd 15.08.7-1build1 amd64 Secure enterprise-wide interface to a database for SLURM
What is the procedure to install x11-spank? There isn't any example about that. How to run specfile?
I think that the -D"X11_LIBEXEC_PROG=\"%{_libexecdir}/%{name}\""
should be also used into the gcc
command of the slurm-spank-x11.spec
file.
When using this plugin from a graphical environment, XAUTHORITY value is already use, matching the running environment, and is propagated by ssh to remote host. Command launched remotely will use this value instead of the local one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.