Browse Source

Unnecessary extra array in ocl code.

nfactor-troky
ckolivas 12 years ago
parent
commit
a797898fc3
  1. 1
      ocl.c

1
ocl.c

@ -131,7 +131,6 @@ int clDevicesNum(void) {
} }
if (numDevices) { if (numDevices) {
unsigned int j; unsigned int j;
char pbuff[256];
cl_device_id *devices = (cl_device_id *)malloc(numDevices*sizeof(cl_device_id)); cl_device_id *devices = (cl_device_id *)malloc(numDevices*sizeof(cl_device_id));
clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, numDevices, devices, NULL); clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, numDevices, devices, NULL);

Loading…
Cancel
Save