mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Initialise mdplatform.
This commit is contained in:
parent
861f4329b2
commit
471daecb5f
2
ocl.c
2
ocl.c
@ -80,7 +80,7 @@ int clDevicesNum(void) {
|
|||||||
cl_uint numPlatforms;
|
cl_uint numPlatforms;
|
||||||
cl_platform_id *platforms;
|
cl_platform_id *platforms;
|
||||||
cl_platform_id platform = NULL;
|
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);
|
status = clGetPlatformIDs(0, NULL, &numPlatforms);
|
||||||
/* If this fails, assume no GPUs. */
|
/* If this fails, assume no GPUs. */
|
||||||
|
Loading…
Reference in New Issue
Block a user