1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 01:50:10 +00:00

Backend Info: Added local memory size to output

This commit is contained in:
Gabriele Gristina 2021-12-17 22:43:11 +01:00
parent eef28013ac
commit 450f9549b4
2 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,7 @@
- User Options: Add new module function module_hash_decode_postprocess() to override hash specific configurations from command line - User Options: Add new module function module_hash_decode_postprocess() to override hash specific configurations from command line
- OpenCL Runtime: Added support to use Apple Silicon compute devices - OpenCL Runtime: Added support to use Apple Silicon compute devices
- OpenCL Runtime: Set default device-type to GPU with Apple Silicon compute devices - OpenCL Runtime: Set default device-type to GPU with Apple Silicon compute devices
- Backend Info: Added local memory size to output
* changes v6.2.4 -> v6.2.5 * changes v6.2.4 -> v6.2.5

View File

@ -785,6 +785,7 @@ void backend_info (hashcat_ctx_t *hashcat_ctx)
char *device_name = device_param->device_name; char *device_name = device_param->device_name;
u32 device_processors = device_param->device_processors; u32 device_processors = device_param->device_processors;
u32 device_maxclock_frequency = device_param->device_maxclock_frequency; u32 device_maxclock_frequency = device_param->device_maxclock_frequency;
u64 device_local_mem_size = device_param->device_local_mem_size;
u64 device_available_mem = device_param->device_available_mem; u64 device_available_mem = device_param->device_available_mem;
u64 device_global_mem = device_param->device_global_mem; u64 device_global_mem = device_param->device_global_mem;
u8 pcie_domain = device_param->pcie_domain; u8 pcie_domain = device_param->pcie_domain;
@ -806,6 +807,7 @@ void backend_info (hashcat_ctx_t *hashcat_ctx)
event_log_info (hashcat_ctx, " Clock..........: %u", device_maxclock_frequency); event_log_info (hashcat_ctx, " Clock..........: %u", device_maxclock_frequency);
event_log_info (hashcat_ctx, " Memory.Total...: %" PRIu64 " MB", device_global_mem / 1024 / 1024); event_log_info (hashcat_ctx, " Memory.Total...: %" PRIu64 " MB", device_global_mem / 1024 / 1024);
event_log_info (hashcat_ctx, " Memory.Free....: %" PRIu64 " MB", device_available_mem / 1024 / 1024); event_log_info (hashcat_ctx, " Memory.Free....: %" PRIu64 " MB", device_available_mem / 1024 / 1024);
event_log_info (hashcat_ctx, " Local.Memory...: %" PRIu64 " KB", device_local_mem_size / 1024);
event_log_info (hashcat_ctx, " PCI.Addr.BDFe..: %04x:%02x:%02x.%d", (u16) pcie_domain, pcie_bus, pcie_device, pcie_function); event_log_info (hashcat_ctx, " PCI.Addr.BDFe..: %04x:%02x:%02x.%d", (u16) pcie_domain, pcie_bus, pcie_device, pcie_function);
event_log_info (hashcat_ctx, NULL); event_log_info (hashcat_ctx, NULL);
} }
@ -845,6 +847,7 @@ void backend_info (hashcat_ctx_t *hashcat_ctx)
char *device_name = device_param->device_name; char *device_name = device_param->device_name;
u32 device_processors = device_param->device_processors; u32 device_processors = device_param->device_processors;
u32 device_maxclock_frequency = device_param->device_maxclock_frequency; u32 device_maxclock_frequency = device_param->device_maxclock_frequency;
u64 device_local_mem_size = device_param->device_local_mem_size;
u64 device_available_mem = device_param->device_available_mem; u64 device_available_mem = device_param->device_available_mem;
u64 device_global_mem = device_param->device_global_mem; u64 device_global_mem = device_param->device_global_mem;
u8 pcie_domain = device_param->pcie_domain; u8 pcie_domain = device_param->pcie_domain;
@ -866,6 +869,7 @@ void backend_info (hashcat_ctx_t *hashcat_ctx)
event_log_info (hashcat_ctx, " Clock..........: %u", device_maxclock_frequency); event_log_info (hashcat_ctx, " Clock..........: %u", device_maxclock_frequency);
event_log_info (hashcat_ctx, " Memory.Total...: %" PRIu64 " MB", device_global_mem / 1024 / 1024); event_log_info (hashcat_ctx, " Memory.Total...: %" PRIu64 " MB", device_global_mem / 1024 / 1024);
event_log_info (hashcat_ctx, " Memory.Free....: %" PRIu64 " MB", device_available_mem / 1024 / 1024); event_log_info (hashcat_ctx, " Memory.Free....: %" PRIu64 " MB", device_available_mem / 1024 / 1024);
event_log_info (hashcat_ctx, " Local.Memory...: %" PRIu64 " KB", device_local_mem_size / 1024);
event_log_info (hashcat_ctx, " PCI.Addr.BDFe..: %04x:%02x:%02x.%d", (u16) pcie_domain, pcie_bus, pcie_device, pcie_function); event_log_info (hashcat_ctx, " PCI.Addr.BDFe..: %04x:%02x:%02x.%d", (u16) pcie_domain, pcie_bus, pcie_device, pcie_function);
event_log_info (hashcat_ctx, NULL); event_log_info (hashcat_ctx, NULL);
} }
@ -907,6 +911,7 @@ void backend_info (hashcat_ctx_t *hashcat_ctx)
u32 device_processors = device_param->device_processors; u32 device_processors = device_param->device_processors;
u32 device_maxclock_frequency = device_param->device_maxclock_frequency; u32 device_maxclock_frequency = device_param->device_maxclock_frequency;
u64 device_maxmem_alloc = device_param->device_maxmem_alloc; u64 device_maxmem_alloc = device_param->device_maxmem_alloc;
u64 device_local_mem_size = device_param->device_local_mem_size;
u64 device_available_mem = device_param->device_available_mem; u64 device_available_mem = device_param->device_available_mem;
u64 device_global_mem = device_param->device_global_mem; u64 device_global_mem = device_param->device_global_mem;
cl_device_type opencl_device_type = device_param->opencl_device_type; cl_device_type opencl_device_type = device_param->opencl_device_type;
@ -934,6 +939,7 @@ void backend_info (hashcat_ctx_t *hashcat_ctx)
event_log_info (hashcat_ctx, " Clock..........: %u", device_maxclock_frequency); event_log_info (hashcat_ctx, " Clock..........: %u", device_maxclock_frequency);
event_log_info (hashcat_ctx, " Memory.Total...: %" PRIu64 " MB (limited to %" PRIu64 " MB allocatable in one block)", device_global_mem / 1024 / 1024, device_maxmem_alloc / 1024 / 1024); event_log_info (hashcat_ctx, " Memory.Total...: %" PRIu64 " MB (limited to %" PRIu64 " MB allocatable in one block)", device_global_mem / 1024 / 1024, device_maxmem_alloc / 1024 / 1024);
event_log_info (hashcat_ctx, " Memory.Free....: %" PRIu64 " MB", device_available_mem / 1024 / 1024); event_log_info (hashcat_ctx, " Memory.Free....: %" PRIu64 " MB", device_available_mem / 1024 / 1024);
event_log_info (hashcat_ctx, " Local.Memory...: %" PRIu64 " KB", device_local_mem_size / 1024);
event_log_info (hashcat_ctx, " OpenCL.Version.: %s", opencl_device_c_version); event_log_info (hashcat_ctx, " OpenCL.Version.: %s", opencl_device_c_version);
event_log_info (hashcat_ctx, " Driver.Version.: %s", opencl_driver_version); event_log_info (hashcat_ctx, " Driver.Version.: %s", opencl_driver_version);