Browse Source

Initialise mdplatform.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
07292f73a1
  1. 2
      ocl.c

2
ocl.c

@ -80,7 +80,7 @@ int clDevicesNum(void) { @@ -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…
Cancel
Save