From 0d0a07012ce21afccd37c7a61a8afc4b70e4a69a Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 26 Sep 2023 08:52:46 +0000 Subject: [PATCH] Do not show HIPRTC notice if HIP is not installed. In that case we can assume the system doesn't have an AMD GPU --- src/backend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend.c b/src/backend.c index 384bb0d17..16bdd713b 100644 --- a/src/backend.c +++ b/src/backend.c @@ -4396,7 +4396,10 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx) backend_ctx->rc_hiprtc_init = rc_hiprtc_init; hiprtc_close (hashcat_ctx); + } + if ((rc_hip_init == 0) && (rc_hiprtc_init == -1)) + { #if defined (_WIN) event_log_warning (hashcat_ctx, "Support for HIPRTC was dropped by AMD Adrenalin Edition 22.7.1 and later."); event_log_warning (hashcat_ctx, "This is not a hashcat problem.");