Skip to content

[SYCL][HIP] Fix reported device name #5508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Conversation

npmiller
Copy link
Contributor

@npmiller npmiller commented Feb 8, 2022

On AMD GPUs it seems that hipDeviceGetName returns an empty string, so
when this is the case simply return the architecture instead, as this
what AMD OpenCL devices return for the name.

Before this patch:

Devices  : 1
    Device [#0]:
    Type       : gpu
    Version    : 0.0
    Name       :
    Vendor     : AMD Corporation
    Driver     : HIP 40421.43

After this patch:

Devices  : 1
    Device [#0]:
    Type       : gpu
    Version    : 0.0
    Name       : gfx908:sramecc+:xnack-
    Vendor     : AMD Corporation
    Driver     : HIP 40421.43

On AMD GPUs it seems that `hipDeviceGetName` returns an empty string, so
when this is the case simply return the architecture instead, as this
what AMD OpenCL devices return for the name.

Before this patch:
```
Devices  : 1
    Device [#0]:
    Type       : gpu
    Version    : 0.0
    Name       :
    Vendor     : AMD Corporation
    Driver     : HIP 40421.43
```

After this patch:
```
Devices  : 1
    Device [#0]:
    Type       : gpu
    Version    : 0.0
    Name       : gfx908:sramecc+:xnack-
    Vendor     : AMD Corporation
    Driver     : HIP 40421.43
```
@npmiller
Copy link
Contributor Author

ping @smaslov-intel @intel/llvm-reviewers-runtime

@bader bader merged commit 68b089f into intel:sycl Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants