From 3d898c5daf6a62f4ac1fea7447a4f45743e58ca8 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 10 Aug 2022 19:19:34 +0200 Subject: [PATCH] AMD Driver: Updated requirements for AMD Linux drivers to ROCm 5.2.1 or later due to new HIP interface --- docs/changes.txt | 2 +- docs/readme.txt | 2 +- src/backend.c | 8 ++++---- src/modules/module_01500.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 86ed69454..647521a46 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -76,7 +76,7 @@ ## Technical ## -- AMD Driver: Updated requirements for AMD Linux drivers to ROCm 5.1.1 or later due to new HIP interface +- AMD Driver: Updated requirements for AMD Linux drivers to ROCm 5.2.1 or later due to new HIP interface - AMD Driver: Updated requirements for AMD Windows drivers to Adrenalin 22.3.1 or later due to new HIP interface - Association Attack: Enable module specific pw_min and pw_max settings to avoid false positives in -a 9 attack-mode - Autotune: Added error handling. By default skipping device on error, with --force using accel/loops/threads min values instead diff --git a/docs/readme.txt b/docs/readme.txt index da59272de..c31c7c2cd 100644 --- a/docs/readme.txt +++ b/docs/readme.txt @@ -10,7 +10,7 @@ hashcat v6.2.5 ============== -AMD GPUs on Linux require "AMD ROCm" (5.1.1 or later) +AMD GPUs on Linux require "AMD ROCm" (5.2.1 or later) AMD GPUs on Windows require "AMD Adrenalin Edition" (22.3.1 or later) Intel CPUs require "OpenCL Runtime for Intel Core and Intel Xeon Processors" (16.1.1 or later) NVIDIA GPUs require "NVIDIA Driver" (440.64 or later) and "CUDA Toolkit" (9.0 or later) diff --git a/src/backend.c b/src/backend.c index dd49ed2c2..9b801c7d1 100644 --- a/src/backend.c +++ b/src/backend.c @@ -4434,8 +4434,8 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx) // hiprtc_close (hashcat_ctx); } #else - // 511 is ok - if (hip_runtimeVersion < 50120531) + // 521 is ok + if (hip_runtimeVersion < 50221151) { int hip_version_major = (hip_runtimeVersion - 0) / 10000000; int hip_version_minor = (hip_runtimeVersion - (hip_version_major * 10000000)) / 100000; @@ -4548,7 +4548,7 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx) #if defined (__linux__) event_log_warning (hashcat_ctx, "* AMD GPUs on Linux require this driver:"); - event_log_warning (hashcat_ctx, " \"AMD ROCm\" (5.1.1 or later)"); + event_log_warning (hashcat_ctx, " \"AMD ROCm\" (5.2.1 or later)"); #elif defined (_WIN) event_log_warning (hashcat_ctx, "* AMD GPUs on Windows require this driver:"); event_log_warning (hashcat_ctx, " \"AMD Adrenalin Edition\" (22.3.1 or later)"); @@ -4885,7 +4885,7 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx) #if defined (__linux__) event_log_warning (hashcat_ctx, "* AMD GPUs on Linux require this driver:"); - event_log_warning (hashcat_ctx, " \"AMD ROCm\" (5.1.1 or later)"); + event_log_warning (hashcat_ctx, " \"AMD ROCm\" (5.2.1 or later)"); #elif defined (_WIN) event_log_warning (hashcat_ctx, "* AMD GPUs on Windows require this driver:"); event_log_warning (hashcat_ctx, " \"AMD Adrenalin Edition\" (22.3.1 or later)"); diff --git a/src/modules/module_01500.c b/src/modules/module_01500.c index 5a8011da6..eb89f799e 100644 --- a/src/modules/module_01500.c +++ b/src/modules/module_01500.c @@ -178,11 +178,11 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY { if ((user_options->attack_mode == ATTACK_MODE_BF) && (hashes->salts_cnt == 1) && (user_options->slow_candidates == false)) { - hc_asprintf (&jit_build_options, "-D DESCRYPT_SALT=%u -D _unroll -fno-experimental-new-pass-manager", hashes->salts_buf[0].salt_buf[0] & 0xfff); + hc_asprintf (&jit_build_options, "-D DESCRYPT_SALT=%u -D _unroll -flegacy-pass-manager", hashes->salts_buf[0].salt_buf[0] & 0xfff); } else { - hc_asprintf (&jit_build_options, "-D _unroll -fno-experimental-new-pass-manager"); + hc_asprintf (&jit_build_options, "-D _unroll -flegacy-pass-manager"); } } else