missing headers

This commit is contained in:
Vítor Santos Costa 2013-10-09 13:33:10 +01:00
parent f6bc5ab918
commit ffd9bb7a19
2 changed files with 42 additions and 0 deletions

26
packages/cuda/memory.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef _MEMORY_H_
#define _MEMORY_H_
//#include <thrust/device_vector.h>
#include <list>
#include <vector>
#include "lista.h"
using namespace std;
//using namespace thrust;
void calcular_mem(int);
void liberar(int*, int);
void limpiar();
void limpiartodo(int*, int*);
int cargar(int, int, int, int, int*, int**, int);
int cargafinal(int, int, int**);
void reservar(int**, int);
void registrar(int, int, int*, int, int, int);
bool generadas(int, int, int, int);
void mostrar_memoria(void);
void mostrar_memcpu(void);
void clear_memory(void);
void resultados(vector<rulenode>::iterator, vector<rulenode>::iterator);
#endif

16
packages/cuda/pred.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef _PRED_H_
#define _PRED_H_
typedef struct Nodo{
int name;
int num_rows;
int num_columns;
int is_fact;
int *address_host_table;
}gpunode;
typedef gpunode predicate;
int Cuda_Eval(predicate**, int, predicate**, int, predicate*, int**);
#endif