-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.h
38 lines (25 loc) · 943 Bytes
/
init.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _INIT_H_
#define _INIT_H_
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include "config.h"
#include "client.h"
#include "server.h"
#include "overrides.h"
#include "single_screen.h"
#include "fifo.h"
#include "lib_funcs.h"
#define DEBUG 0
/**********************************
variables globale a tout le programe
************************************/
/*les fils de 1 a nbcarte-1, le pere = 0
numeros du client, va nous permettre de selectionner les processus*/
extern int client_num;
extern int nbcarte;/*nombre de GPU dispo*/
extern sem_t * semadrfen_in;/*semaphore de protection de la fifo*/
extern sem_t * semadrfen_out;
extern int * client_load;/*sert a calculer la charge de travaille de chaque GPU,chaque case du tab represente un pourcentage de calcule attribue a la carte (pas encore utiliser reellemet, toutes les cartes ont la meme chages)*/
extern int width,height;/*taille de la zone*/
#endif