Change rc_board_name_amd initial value to CL_INVALID_VALUE. If CHECK_BOARD_NAME_AMD is changed to 0, there is a problem with CL_SUCCESS which equals to 0, device will be skipped.

This commit is contained in:
Jukka Ojanen
2021-07-05 19:05:10 +03:00
parent b3d18f86e2
commit e133bd4ec4
+1 -1
View File
@@ -6142,7 +6142,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
#define CHECK_BOARD_NAME_AMD 1
cl_int rc_board_name_amd = 0;
cl_int rc_board_name_amd = CL_INVALID_VALUE;
if (CHECK_BOARD_NAME_AMD)
{