1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Typo i - gpu

This commit is contained in:
Con Kolivas 2011-06-26 00:59:07 +10:00
parent fdb46f2d9b
commit 30e38e2ef8

2
ocl.c
View File

@ -391,7 +391,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
binaries = (char **)malloc( sizeof(char *)*nDevices ); binaries = (char **)malloc( sizeof(char *)*nDevices );
if (opt_debug) if (opt_debug)
applog(LOG_DEBUG, "binary size %d : %d", gpu, binary_sizes[gpu]); applog(LOG_DEBUG, "binary size %d : %d", gpu, binary_sizes[gpu]);
binaries[gpu] = (char *)malloc( sizeof(char)*binary_sizes[i] ); binaries[gpu] = (char *)malloc( sizeof(char)*binary_sizes[gpu] );
err = clGetProgramInfo( clState->program, CL_PROGRAM_BINARIES, sizeof(char *)*nDevices, binaries, NULL ); err = clGetProgramInfo( clState->program, CL_PROGRAM_BINARIES, sizeof(char *)*nDevices, binaries, NULL );
unsigned remaining = binary_sizes[gpu]; unsigned remaining = binary_sizes[gpu];