mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 08:38:09 +00:00
Fix some log levels in opencl.c
This commit is contained in:
parent
386efb7fb5
commit
ebc26ecac5
@ -3082,7 +3082,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if ((ADL_rc = hm_ADL_Overdrive_State_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, ADL_OD6_SETSTATE_PERFORMANCE, performance_state)) == -1)
|
||||
{
|
||||
event_log_info (hashcat_ctx, "Failed to set ADL performance state");
|
||||
event_log_error (hashcat_ctx, "Failed to set ADL performance state");
|
||||
|
||||
return -1;
|
||||
}
|
||||
@ -3277,7 +3277,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if ((hm_ADL_Overdrive6_PowerControl_Caps (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, &powertune_supported)) == -1)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "Failed to get ADL PowerControl Capabilities");
|
||||
//event_log_error (hashcat_ctx, "Failed to get ADL PowerControl Capabilities");
|
||||
|
||||
continue;
|
||||
}
|
||||
@ -3288,7 +3288,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if ((hm_ADL_Overdrive_PowerControl_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, hwmon_ctx->od_power_control_status[device_id])) == -1)
|
||||
{
|
||||
event_log_info (hashcat_ctx, "Failed to restore the ADL PowerControl values");
|
||||
//event_log_error (hashcat_ctx, "Failed to restore the ADL PowerControl values");
|
||||
|
||||
continue;
|
||||
}
|
||||
@ -3306,7 +3306,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if ((hm_ADL_Overdrive_State_Set (hashcat_ctx, hwmon_ctx->hm_device[device_id].adl, ADL_OD6_SETSTATE_PERFORMANCE, performance_state)) == -1)
|
||||
{
|
||||
event_log_info (hashcat_ctx, "Failed to restore ADL performance state");
|
||||
//event_log_info (hashcat_ctx, "Failed to restore ADL performance state");
|
||||
|
||||
continue;
|
||||
}
|
||||
|
33
src/opencl.c
33
src/opencl.c
@ -303,20 +303,21 @@ int ocl_init (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (ocl->lib == NULL)
|
||||
{
|
||||
event_log_info (hashcat_ctx, "");
|
||||
event_log_info (hashcat_ctx, "ATTENTION! Can't find OpenCL ICD loader library");
|
||||
event_log_info (hashcat_ctx, "");
|
||||
#if defined (__linux__)
|
||||
event_log_info (hashcat_ctx, "You're probably missing the \"ocl-icd-libopencl1\" package (Debian/Ubuntu)");
|
||||
event_log_info (hashcat_ctx, " sudo apt-get install ocl-icd-libopencl1");
|
||||
event_log_info (hashcat_ctx, "");
|
||||
#elif defined (_WIN)
|
||||
event_log_info (hashcat_ctx, "You're probably missing the OpenCL runtime installation");
|
||||
event_log_info (hashcat_ctx, " AMD users require AMD drivers 14.9 or later (recommended 15.12 or later)");
|
||||
event_log_info (hashcat_ctx, " Intel users require Intel OpenCL Runtime 14.2 or later (recommended 15.1 or later)");
|
||||
event_log_info (hashcat_ctx, " NVidia users require NVidia drivers 346.59 or later (recommended 361.x or later)");
|
||||
event_log_info (hashcat_ctx, "");
|
||||
#endif
|
||||
event_log_warning (hashcat_ctx,
|
||||
"Can't find OpenCL ICD loader library" EOL
|
||||
"" EOL
|
||||
#if defined (__linux__)
|
||||
"You're probably missing the \"ocl-icd-libopencl1\" package (Debian/Ubuntu)" EOL
|
||||
"Run: sudo apt-get install ocl-icd-libopencl1" EOL
|
||||
"" EOL
|
||||
#elif defined (_WIN)
|
||||
"You're probably missing the OpenCL runtime installation" EOL
|
||||
"* AMD users require AMD drivers 14.9 or later (recommended 15.12 or later)" EOL
|
||||
"* Intel users require Intel OpenCL Runtime 14.2 or later (recommended 15.1 or later)" EOL
|
||||
"* NVidia users require NVidia drivers 346.59 or later (recommended 361.x or later)" EOL
|
||||
"" EOL
|
||||
#endif
|
||||
);
|
||||
|
||||
return -1;
|
||||
}
|
||||
@ -1902,7 +1903,9 @@ int opencl_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
opencl_ctx->ocl = ocl;
|
||||
|
||||
ocl_init (hashcat_ctx);
|
||||
const int rc_ocl_init = ocl_init (hashcat_ctx);
|
||||
|
||||
if (rc_ocl_init == -1) return -1;
|
||||
|
||||
/**
|
||||
* OpenCL platform selection
|
||||
|
Loading…
Reference in New Issue
Block a user