mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-04 05:42:35 +00:00
Fixed compile of kernels on AMD systems on windows due to invalid detection of ROCm
This commit is contained in:
parent
b3b5f924dc
commit
f8c687f529
@ -1,3 +1,14 @@
|
|||||||
|
* changes v4.0.0 -> xxx:
|
||||||
|
|
||||||
|
##
|
||||||
|
## Bugs
|
||||||
|
##
|
||||||
|
|
||||||
|
- Fixed a memory leak while parsing a wordlist
|
||||||
|
- Fixed compile of kernels on AMD systems on windows due to invalid detection of ROCm
|
||||||
|
- Fixed compile of sources using clang under MSYS2
|
||||||
|
- Fixed overlapping memory segment copy in CPU rule engine if using a specific rule function
|
||||||
|
|
||||||
* changes v3.6.0 -> v4.0.0:
|
* changes v3.6.0 -> v4.0.0:
|
||||||
|
|
||||||
##
|
##
|
||||||
|
10
src/opencl.c
10
src/opencl.c
@ -3190,7 +3190,9 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
device_param->pcie_device = amdtopo.pcie.device;
|
device_param->pcie_device = amdtopo.pcie.device;
|
||||||
device_param->pcie_function = amdtopo.pcie.function;
|
device_param->pcie_function = amdtopo.pcie.function;
|
||||||
|
|
||||||
// check for AMD ROCm driver
|
#if defined (__linux__)
|
||||||
|
|
||||||
|
// check for AMD ROCm driver (only available on linux)
|
||||||
|
|
||||||
const char *t1 = strstr (device_param->driver_version, "(HSA,LC)");
|
const char *t1 = strstr (device_param->driver_version, "(HSA,LC)");
|
||||||
const char *t2 = strstr (device_param->driver_version, "(PAL,LC)");
|
const char *t2 = strstr (device_param->driver_version, "(PAL,LC)");
|
||||||
@ -3207,6 +3209,12 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
{
|
{
|
||||||
device_param->is_rocm = true;
|
device_param->is_rocm = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
device_param->is_rocm = false;
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((device_param->platform_vendor_id == VENDOR_ID_NV) && (device_param->device_vendor_id == VENDOR_ID_NV))
|
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