Improve GPU function
This commit is contained in:
@@ -10,7 +10,7 @@ extern "C" {
|
||||
|
||||
extern int OpenCL_method;
|
||||
|
||||
int init_OpenCL(int unit_size, int chunk_size, int *src_max);
|
||||
int init_OpenCL(int unit_size, int *src_max);
|
||||
int free_OpenCL(void);
|
||||
void info_OpenCL(char *buf, int buf_size);
|
||||
|
||||
@@ -19,12 +19,11 @@ int gpu_copy_blocks(
|
||||
int unit_size,
|
||||
int src_num);
|
||||
|
||||
int gpu_multiply_chunks(
|
||||
int gpu_multiply_blocks(
|
||||
int src_num, // Number of multiplying source blocks
|
||||
unsigned short *mat, // Matrix of numbers to multiply by
|
||||
unsigned char *buf, // Products go here
|
||||
int offset, // Offset in each block
|
||||
int length); // Byte length
|
||||
int len); // Byte length
|
||||
|
||||
int gpu_finish(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user