CX/include/cx.h

51 lines
857 B
C

#ifndef CX_H
#define CX_H
// Include standard headers
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include <stdint.h>
#include <pthread.h>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
// Include project headers
#include <tensor.h>
#include <model.h>
#include <tensor.h>
#include <shader.h>
#include <neural.h>
// Declare common data structures.
typedef struct _cx_thrgr {
pthread_t *group_manager;
pthread_t *workers;
} CX_ThreadGroup;
typedef struct _cx_ctx {
GLFWwindow *window;
Neural_Network *nn;
CX_ThreadGroup **threads;
} CX_Context;
// Declare functions
CX_Context *cx_context_new(void);
int cx_glinit(GLFWwindow **);
int cx_nninit(Neural_Network **);
int cx_run(CX_Context *);
#endif