[slurm-users] the slurm_load_partitions2 function from slurm api

mercan ahmet.mercan at uhem.itu.edu.tr
Thu May 9 03:25:06 UTC 2019


Hi;

I am trying to use the slurm_load_partitions2 function from slurm api. 
It is defined as:

extern int slurm_load_partitions2(time_t update_time,
                                   partition_info_msg_t **resp,
                                   uint16_t show_flags,
                                   slurmdb_cluster_rec_t *cluster);


But, I can not find a document or an example code to use it.

To use it, I should create a slurmdb_cluster_rec_t struct. But every way 
that I found to create slurmdb_cluster_rec_t struct requires a lot of 
include of slurm development libraries.

Of course, I can use directly slurm development libraries, but than, 
using the slurm api is meanless, isn't it?

Do you know a way to use slurm_load_partitions2 function?

Regards;

Ahmet M.




More information about the slurm-users mailing list