Skip to content
Snippets Groups Projects
Commit 9f9b3407 authored by David Bigagli's avatar David Bigagli
Browse files

Introduce the init() and fini() in the gres_gpu plugin. Free the global

gpu_device global data structure.
parent beef1688
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,19 @@ static char gres_name[] = "gpu";
static int *gpu_devices = NULL;
static int nb_available_files;
extern int init(void)
{
info("%s: %s loaded", __func__, plugin_name);
return SLURM_SUCCESS;
}
extern int fini(void)
{
info("%s: unloading %s", __func__, plugin_name);
xfree(gpu_devices);
return SLURM_SUCCESS;
}
/*
* We could load gres state or validate it using various mechanisms here.
* This only validates that the configuration was specified in gres.conf.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment