From 20f7febd4c392582c0e925d8201e250e821feef1 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 11 Jul 2021 15:54:13 +0200 Subject: [PATCH] Workaround too intensive optimization in -m 2000 using HIPRTC --- OpenCL/inc_platform.cl | 2 +- src/terminal.c | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/OpenCL/inc_platform.cl b/OpenCL/inc_platform.cl index 40002c3eb..1a63e7c3a 100644 --- a/OpenCL/inc_platform.cl +++ b/OpenCL/inc_platform.cl @@ -168,7 +168,7 @@ DECLSPEC u64 rotr64_S (const u64 a, const int n) #if ATTACK_EXEC == 11 -CONSTANT_VK u32 generic_constant[8192]; // 32k +CONSTANT_VK u32 generic_constant[8192] __attribute__((used)); // 32k #if ATTACK_KERN == 0 #define bfs_buf g_bfs_buf diff --git a/src/terminal.c b/src/terminal.c index e99836032..54bffed10 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -956,6 +956,10 @@ void backend_info_compact (hashcat_ctx_t *hashcat_ctx) if (user_options->machine_readable == true) return; if (user_options->status_json == true) return; + /** + * CUDA + */ + if (backend_ctx->cuda) { int cuda_devices_cnt = backend_ctx->cuda_devices_cnt; @@ -1003,9 +1007,10 @@ void backend_info_compact (hashcat_ctx_t *hashcat_ctx) event_log_info (hashcat_ctx, NULL); } - /* - * HIP - */ + /** + * HIP + */ + if (backend_ctx->hip) { int hip_devices_cnt = backend_ctx->hip_devices_cnt; @@ -1053,9 +1058,10 @@ void backend_info_compact (hashcat_ctx_t *hashcat_ctx) event_log_info (hashcat_ctx, NULL); } - /* - * OCL - */ + /** + * OpenCL + */ + if (backend_ctx->ocl) { cl_uint opencl_platforms_cnt = backend_ctx->opencl_platforms_cnt;