Skip to content

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