mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-19 14:38:51 +00:00
Make unsupported AMD HIP runtime version error message a bit more human readable
This commit is contained in:
parent
ea5ddee6e2
commit
5e1d37c82e
@ -7093,7 +7093,7 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
if (hip_runtimeVersion < 404)
|
if (hip_runtimeVersion < 404)
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "Unsupported AMD HIP runtime version '%d' detected! Falling back to OpenCL...", hip_runtimeVersion);
|
event_log_warning (hashcat_ctx, "Unsupported AMD HIP runtime version '%d.%d' detected! Falling back to OpenCL...", hip_runtimeVersion / 100, hip_runtimeVersion % 10);
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
|
||||||
rc_hip_init = -1;
|
rc_hip_init = -1;
|
||||||
@ -7116,7 +7116,11 @@ int backend_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
// we need to wait for 4.4 to be released to continue here
|
// we need to wait for 4.4 to be released to continue here
|
||||||
// ignore this backend
|
// ignore this backend
|
||||||
|
|
||||||
event_log_warning (hashcat_ctx, "Unsupported AMD HIP runtime version '%d' detected! Falling back to OpenCL...", hip_runtimeVersion);
|
int hip_version_major = (hip_runtimeVersion - 0) / 10000000;
|
||||||
|
int hip_version_minor = (hip_runtimeVersion - (hip_version_major * 10000000)) / 100000;
|
||||||
|
int hip_version_patch = (hip_runtimeVersion - (hip_version_major * 10000000) - (hip_version_minor * 100000));
|
||||||
|
|
||||||
|
event_log_warning (hashcat_ctx, "Unsupported AMD HIP runtime version '%d.%d.%d' detected! Falling back to OpenCL...", hip_version_major, hip_version_minor, hip_version_patch);
|
||||||
event_log_warning (hashcat_ctx, NULL);
|
event_log_warning (hashcat_ctx, NULL);
|
||||||
|
|
||||||
rc_hip_init = -1;
|
rc_hip_init = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user