am trying to write out a simple SLURM
plugin that creates a text file based
on the following information about a
particular job :
- number of nodes
- the nodes ip addresses its running on
- who the job submitter is

based on this information, i'd like to
write to a configuration file that my
own self-developed distributed application
then uses to do some other fancy stuff.

i've never programmed a plugin for anything
before and i'd like clarification on the
following points :

- what will the c file structure look like
  (more or less)

  #include <standard stuff>

  int init()
  {}

  void fini(void)
  {}

  int main(...)
  {}

  how do i call this function from SLURM or
  link it or whatever ?

- how am i supposed to export
  char plugin_type[], char plugin_name[],
  const uint32_t plugin_version ??

- what headers do i need to include to
  have access to the SLURM API function
  calls ?

  I'm sorry if detailed documentation for all
  this exists, but i just couldn't find any.





Reply via email to