Fixed selection of OpenCL devices (-d) if there's more than 32 OpenCL devices installed

This commit is contained in:
Jens Steube
2018-11-30 22:59:43 +01:00
parent 01879c6395
commit 0b2ffec379
4 changed files with 70 additions and 67 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ but this is nededed for VS compiler which doesn't have inline keyword but has __
#define CPT_CACHE 0x20000
#define PARAMCNT 64
#define DEVICES_MAX 128
#define DEVICES_MAX 64
#define EXEC_CACHE 128
#define SPEED_CACHE 4096
#define SPEED_MAXAGE 4096
+2 -2
View File
@@ -1346,8 +1346,8 @@ typedef struct opencl_ctx
u64 kernel_power_all;
u64 kernel_power_final; // we save that so that all divisions are done from the same base
u32 opencl_platforms_filter;
u32 devices_filter;
u64 opencl_platforms_filter;
u64 devices_filter;
cl_device_type device_types_filter;
double target_msec;