@@ -901,7 +901,7 @@ bool PLAN_CLASS_SPEC::check(
901901 if (cpp) {
902902 if (config.debug_version_select ) {
903903 log_messages.printf (MSG_NORMAL ,
904- " [version] plan_class_spec: OpenCL coproc %s found\n " , gpu_type
904+ " [version] plan_class_spec: OpenCL coproc %s found\n " , cpp-> type
905905 );
906906 }
907907 if (cpp->bad_gpu_peak_flops (" OpenCL coproc" , msg)) {
@@ -951,7 +951,7 @@ bool PLAN_CLASS_SPEC::check(
951951
952952 // general GPU
953953 //
954- if (strlen (gpu_type) ) {
954+ if (cpp ) {
955955
956956 // GPU RAM
957957 //
@@ -1045,10 +1045,10 @@ bool PLAN_CLASS_SPEC::check(
10451045 } else if (!strcmp (gpu_type, " nvidia" )) {
10461046 hu.proc_type = PROC_TYPE_NVIDIA_GPU ;
10471047 hu.gpu_usage = gpu_usage;
1048- } else if (strstr (gpu_type, " intel" )== gpu_type) {
1048+ } else if (strstr (gpu_type, " intel" ) == gpu_type) {
10491049 hu.proc_type = PROC_TYPE_INTEL_GPU ;
10501050 hu.gpu_usage = gpu_usage;
1051- } else if (strstr (gpu_type, " apple_gpu" )== gpu_type) {
1051+ } else if (strstr (gpu_type, " apple_gpu" ) == gpu_type) {
10521052 hu.proc_type = PROC_TYPE_APPLE_GPU ;
10531053 hu.gpu_usage = gpu_usage;
10541054 } else {
0 commit comments