1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-27 02:18:21 +00:00

Add ROCm to the list of supported AMD platforms

This commit is contained in:
jsteube 2017-07-06 19:11:56 +02:00
parent 17b003b355
commit a1e3b20902

View File

@ -3296,6 +3296,8 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
bool amd_warn = true; bool amd_warn = true;
#if defined (__linux__) #if defined (__linux__)
if (strstr (device_param->driver_version, "(HSA,LC)") == NULL)
{
// AMDGPU-PRO Driver 16.40 and higher // AMDGPU-PRO Driver 16.40 and higher
if (atoi (device_param->driver_version) >= 2117) amd_warn = false; if (atoi (device_param->driver_version) >= 2117) amd_warn = false;
// AMDGPU-PRO Driver 16.50 is known to be broken // AMDGPU-PRO Driver 16.50 is known to be broken
@ -3304,6 +3306,13 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
if (atoi (device_param->driver_version) == 2264) amd_warn = true; if (atoi (device_param->driver_version) == 2264) amd_warn = true;
// AMDGPU-PRO Driver 17.10 is known to be broken // AMDGPU-PRO Driver 17.10 is known to be broken
if (atoi (device_param->driver_version) == 2348) amd_warn = true; if (atoi (device_param->driver_version) == 2348) amd_warn = true;
// AMDGPU-PRO Driver 17.20 (2416) is fine, doesn't need check will match >= 2117
}
else
{
// Support for ROCm platform
if (atof (device_param->driver_version) >= 1.1) amd_warn = false;
}
#elif defined (_WIN) #elif defined (_WIN)
// AMD Radeon Software 14.9 and higher, should be updated to 15.12 // AMD Radeon Software 14.9 and higher, should be updated to 15.12
if (atoi (device_param->driver_version) >= 1573) amd_warn = false; if (atoi (device_param->driver_version) >= 1573) amd_warn = false;