1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-09 12:11:02 +00:00

Do not scan other gpu platforms if one is specified.

This commit is contained in:
Con Kolivas 2013-03-21 14:56:07 +11:00
parent 40dda83283
commit 132ee4c981

3
ocl.c
View File

@ -103,6 +103,9 @@ int clDevicesNum(void) {
}
for (i = 0; i < numPlatforms; i++) {
if (opt_platform_id >= 0 && (int)i != opt_platform_id)
continue;
status = clGetPlatformInfo( platforms[i], CL_PLATFORM_VENDOR, sizeof(pbuff), pbuff, NULL);
if (status != CL_SUCCESS) {
applog(LOG_ERR, "Error %d: Getting Platform Info. (clGetPlatformInfo)", status);