mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-16 17:42:04 +00:00
Improve alias device detection to distinguish between Intel CPU and embedded GPU
This commit is contained in:
parent
119344c084
commit
434ad76381
@ -43,6 +43,10 @@ static bool is_same_device (const hc_device_param_t *src, const hc_device_param_
|
|||||||
if (src->pcie_device != dst->pcie_device) return false;
|
if (src->pcie_device != dst->pcie_device) return false;
|
||||||
if (src->pcie_function != dst->pcie_function) return false;
|
if (src->pcie_function != dst->pcie_function) return false;
|
||||||
|
|
||||||
|
// Intel CPU and embedded GPU would survive up to here!
|
||||||
|
|
||||||
|
if (src->opencl_device_type != dst->opencl_device_type) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user