mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Unnecessary extra array in ocl code.
This commit is contained in:
parent
42e8eac9dc
commit
a797898fc3
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…
x
Reference in New Issue
Block a user