On Wed, May 29, 2024 at 02:15:07PM +0200, Tobias Burnus wrote:
> +      bool b;
> +      hsa_status_t status;
> +      status = hsa_fns.hsa_system_get_info_fn (
> +              HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT, &b);
> +      if (status != HSA_STATUS_SUCCESS)
> +     GOMP_PLUGIN_error (
> +       "HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT failed");

Formatting, the (s at the end of lines look terrible.
In the first case, perhaps using a temporary would help,
      hsa_system_info_t arg = HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT;
      status = hsa_fns.hsa_system_get_info_fn (arg, &b);
(or use something else instead of arg, as long as its short), while in the
second
        GOMP_PLUGIN_error ("HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT "
                           "failed");
will do.

Other than that LGTM.

        Jakub

Reply via email to