I am not certain that I understand your question, but there are SLURM environment variables set with the information that you describe. See the section "OUTPUT ENVIRONMENT VARIABLES" in the srun man page. ________________________________________ From: [email protected] [[email protected]] On Behalf Of PULVERAIL Sébastien [[email protected]] Sent: Wednesday, June 08, 2011 8:16 AM To: [email protected] Subject: [slurm-dev] Link SLURM with an other API
Hi all, I am new to SLURM, and I hope my question is not stupid. My client had developed his own API to manage processes and resources in a multithreading context on clusters environment. Now he wants to replace some modules by opensource ones as SLURM. More precisely, he wants to use some SLURM functionnalities : query job id, rank node, etc. To do that, I need to init correctly all my structures, but functions I need are not in SLURM includes (slurm.h & cie). I precise the API must be linked with SLURM, and must not use SLURM sources. So, how can I initialize job id, nodes & processes ranks, nodes & processes number, … ? Thanks for your help.
