1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00
sgminer/ocl.h

32 lines
658 B
C
Raw Normal View History

#ifndef OCL_H
#define OCL_H
#include <stdbool.h>
typedef struct __clState {
cl_context context;
cl_kernel kernel;
cl_kernel *extra_kernels;
size_t n_extra_kernels;
cl_command_queue commandQueue;
cl_program program;
cl_mem outputBuffer;
cl_mem CLbuffer0;
2015-03-25 17:54:32 +00:00
cl_mem MidstateBuf;
cl_mem padbuffer8;
cl_mem buffer1;
cl_mem buffer2;
cl_mem buffer3;
2016-03-21 16:34:35 +00:00
unsigned char cldata[256];
bool goffset;
cl_uint vwidth;
size_t max_work_size;
size_t wsize;
size_t compute_shaders;
} _clState;
extern int clDevicesNum(void);
extern _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *algorithm);
#endif /* OCL_H */