1
0
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:
jsteube 2017-10-20 08:39:23 +02:00
parent a03bda0921
commit 2e85972ec5
2 changed files with 5 additions and 0 deletions

View File

@ -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";

View File

@ -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;