OpenCL Runtime: Add some unstable warnings for some SHA512 based algorithms on AMD GPU on macOS

This commit is contained in:
Jens Steube
2020-07-15 11:27:46 +02:00
parent 577768320d
commit b9f6777f1b
61 changed files with 746 additions and 43 deletions
+9
View File
@@ -44,6 +44,15 @@ const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig,
bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra, MAYBE_UNUSED const hc_device_param_t *device_param)
{
// AMD on Apple not affected
if (device_param->opencl_platform_vendor_id == VENDOR_ID_APPLE)
{
if ((device_param->opencl_device_vendor_id == VENDOR_ID_AMD) && (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU))
{
return false;
}
}
// amdgpu-pro-19.30-934563-ubuntu-18.04: self-test failure.
if ((device_param->opencl_device_vendor_id == VENDOR_ID_AMD) && (device_param->has_vperm == false))
{