cctools
work_queue_resources.h
1 /*
2 Copyright (C) 2013- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef WORK_QUEUE_RESOURCES_H
8 #define WORK_QUEUE_RESOURCES_H
9 
10 #include "link.h"
11 #include "jx.h"
12 
14  int64_t inuse;
15  int64_t total;
16  int64_t smallest;
17  int64_t largest;
18 };
19 
21  int64_t tag; // Identifies the resource snapshot.
22  struct work_queue_resource workers;
23  struct work_queue_resource disk;
24  struct work_queue_resource cores;
25  struct work_queue_resource memory;
26  struct work_queue_resource gpus;
27 };
28 
29 struct work_queue_resources * work_queue_resources_create();
30 void work_queue_resources_delete( struct work_queue_resources *r );
31 void work_queue_resources_debug( struct work_queue_resources *r );
32 void work_queue_resources_measure_locally( struct work_queue_resources *r, const char *workspace );
33 void work_queue_resources_send( struct link *manager, struct work_queue_resources *r, time_t stoptime );
34 void work_queue_resources_clear( struct work_queue_resources *r );
35 void work_queue_resources_add( struct work_queue_resources *total, struct work_queue_resources *r );
36 void work_queue_resources_add_to_jx( struct work_queue_resources *r, struct jx *j );
37 
38 #endif
JSON Expressions (JX) library.
Definition: work_queue_resources.h:20
JX value representing any expression type.
Definition: jx.h:115
Definition: work_queue_resources.h:13