mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Initialise mdplatform.
This commit is contained in:
parent
ffd21f8db3
commit
07292f73a1
2
ocl.c
2
ocl.c
@ -80,7 +80,7 @@ int clDevicesNum(void) {
|
||||
cl_uint numPlatforms;
|
||||
cl_platform_id *platforms;
|
||||
cl_platform_id platform = NULL;
|
||||
unsigned int most_devices = 0, i, mdplatform;
|
||||
unsigned int most_devices = 0, i, mdplatform = 0;
|
||||
|
||||
status = clGetPlatformIDs(0, NULL, &numPlatforms);
|
||||
/* If this fails, assume no GPUs. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user