|
|
@ -284,6 +284,25 @@ void ethash_cl_miner::listDevices() |
|
|
|
doForAllDevices([&outString, &i](cl::Device const _device) |
|
|
|
{ |
|
|
|
outString += "[" + to_string(i) + "] " + _device.getInfo<CL_DEVICE_NAME>() + "\n"; |
|
|
|
outString += "\tCL_DEVICE_TYPE: "; |
|
|
|
switch (_device.getInfo<CL_DEVICE_TYPE>()) |
|
|
|
{ |
|
|
|
case CL_DEVICE_TYPE_CPU: |
|
|
|
outString += "CPU\n"; |
|
|
|
break; |
|
|
|
case CL_DEVICE_TYPE_GPU: |
|
|
|
outString += "GPU\n"; |
|
|
|
break; |
|
|
|
case CL_DEVICE_TYPE_ACCELERATOR: |
|
|
|
outString += "ACCELERATOR\n"; |
|
|
|
break; |
|
|
|
default: |
|
|
|
outString += "DEFAULT\n"; |
|
|
|
break; |
|
|
|
} |
|
|
|
outString += "\tCL_DEVICE_GLOBAL_MEM_SIZE: " + to_string(_device.getInfo<CL_DEVICE_GLOBAL_MEM_SIZE>()) + "\n"; |
|
|
|
outString += "\tCL_DEVICE_MAX_MEM_ALLOC_SIZE: " + to_string(_device.getInfo<CL_DEVICE_MAX_MEM_ALLOC_SIZE>()) + "\n"; |
|
|
|
outString += "\tCL_DEVICE_MAX_WORK_GROUP_SIZE: " + to_string(_device.getInfo<CL_DEVICE_MAX_WORK_GROUP_SIZE>()) + "\n"; |
|
|
|
++i; |
|
|
|
} |
|
|
|
); |
|
|
|