1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 06:38:11 +00:00

Merge pull request #3910 from Fil0sOFF/intel-igpu-memory-usage-fix

Fix RAM usage for Intel iGPUs
This commit is contained in:
Jens Steube 2023-11-27 16:24:08 +01:00 committed by GitHub
commit 4d412c8e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8029,7 +8029,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
device_param->device_available_mem = device_param->device_global_mem - MAX_ALLOC_CHECKS_SIZE;
if (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU)
if ((device_param->opencl_device_type & CL_DEVICE_TYPE_GPU) && ((device_param->opencl_platform_vendor_id != VENDOR_ID_INTEL_SDK) || (device_param->device_host_unified_memory == 0)))
{
// OK, so the problem here is the following:
// There's just CL_DEVICE_GLOBAL_MEM_SIZE to ask OpenCL about the total memory on the device,