mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-22 21:51:07 +00:00
Add special detection for NVIDIA OpenCL devices on OSX
This commit is contained in:
parent
a03bda0921
commit
2e85972ec5
@ -13,6 +13,7 @@ static const char CL_VENDOR_AMD1[] = "Advanced Micro Devices, Inc.";
|
|||||||
static const char CL_VENDOR_AMD2[] = "AuthenticAMD";
|
static const char CL_VENDOR_AMD2[] = "AuthenticAMD";
|
||||||
static const char CL_VENDOR_AMD_USE_INTEL[] = "GenuineIntel";
|
static const char CL_VENDOR_AMD_USE_INTEL[] = "GenuineIntel";
|
||||||
static const char CL_VENDOR_APPLE[] = "Apple";
|
static const char CL_VENDOR_APPLE[] = "Apple";
|
||||||
|
static const char CL_VENDOR_APPLE_USE_NV[] = "NVIDIA";
|
||||||
static const char CL_VENDOR_INTEL_BEIGNET[] = "Intel";
|
static const char CL_VENDOR_INTEL_BEIGNET[] = "Intel";
|
||||||
static const char CL_VENDOR_INTEL_SDK[] = "Intel(R) Corporation";
|
static const char CL_VENDOR_INTEL_SDK[] = "Intel(R) Corporation";
|
||||||
static const char CL_VENDOR_MESA[] = "Mesa";
|
static const char CL_VENDOR_MESA[] = "Mesa";
|
||||||
|
@ -2842,6 +2842,10 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
{
|
{
|
||||||
device_vendor_id = VENDOR_ID_APPLE;
|
device_vendor_id = VENDOR_ID_APPLE;
|
||||||
}
|
}
|
||||||
|
else if (strcmp (device_vendor, CL_VENDOR_APPLE_USE_NV) == 0)
|
||||||
|
{
|
||||||
|
device_vendor_id = VENDOR_ID_NV;
|
||||||
|
}
|
||||||
else if (strcmp (device_vendor, CL_VENDOR_INTEL_BEIGNET) == 0)
|
else if (strcmp (device_vendor, CL_VENDOR_INTEL_BEIGNET) == 0)
|
||||||
{
|
{
|
||||||
device_vendor_id = VENDOR_ID_INTEL_BEIGNET;
|
device_vendor_id = VENDOR_ID_INTEL_BEIGNET;
|
||||||
|
Loading…
Reference in New Issue
Block a user