mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 15:18:16 +00:00
OpenCL Runtime: Updated rocm detection
This commit is contained in:
parent
9aa9725b91
commit
68b1ea4b68
@ -48,6 +48,7 @@
|
||||
- Files: Switched back to relative current working directory on windows to work around problems with unicode characters
|
||||
- Hash Parser: Changed the way large strings are handled/truncated within the event buffer if they are too large to fit
|
||||
- Hash Parser: Fixed the use of strtok_r () calls
|
||||
- OpenCL Runtime: Updated rocm detection
|
||||
- OpenCL Kernels: Replace variables from uXX to uXXa if used in __constant space
|
||||
- OpenCL Kernels: Use a special kernel to initialize the password buffer used during autotune measurements, to reduce startup time
|
||||
- OpenCL Kernels: Use static declaraction for uXXa variables used in __constant space
|
||||
|
13
src/opencl.c
13
src/opencl.c
@ -3231,14 +3231,11 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
||||
|
||||
// check for AMD ROCm driver (only available on linux)
|
||||
|
||||
const char *t1 = strstr (device_param->driver_version, "(HSA,LC)");
|
||||
const char *t2 = strstr (device_param->driver_version, "(PAL,LC)");
|
||||
const char *t3 = strstr (device_param->driver_version, "(PAL,HSAIL)");
|
||||
const char *t4 = strstr (device_param->driver_version, "(HSA, LC)");
|
||||
const char *t5 = strstr (device_param->driver_version, "(PAL, LC)");
|
||||
const char *t6 = strstr (device_param->driver_version, "(PAL, HSAIL)");
|
||||
const char *t1 = strstr (device_param->driver_version, "HSA");
|
||||
const char *t2 = strstr (device_param->driver_version, "LC");
|
||||
const char *t3 = strstr (device_param->driver_version, "PAL");
|
||||
|
||||
if ((t1 == NULL) && (t2 == NULL) && (t3 == NULL) && (t4 == NULL) && (t5 == NULL) && (t6 == NULL))
|
||||
if ((t1 == NULL) && (t2 == NULL) && (t3 == NULL))
|
||||
{
|
||||
device_param->is_rocm = false;
|
||||
}
|
||||
@ -3252,6 +3249,8 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
||||
device_param->is_rocm = false;
|
||||
|
||||
#endif
|
||||
|
||||
printf ("%d\n", device_param->is_rocm);
|
||||
}
|
||||
|
||||
if ((device_param->platform_vendor_id == VENDOR_ID_NV) && (device_param->device_vendor_id == VENDOR_ID_NV))
|
||||
|
Loading…
Reference in New Issue
Block a user