Skip to content

Wrong HSA_OVERRIDE_GFX_VERSION in start_gradio_ui_rocm.sh crashes my desktop environment #658

@pkrasicki

Description

@pkrasicki

Describe the bug
I'm using an RX 6700 XT (gfx1031), which requires HSA_OVERRIDE_GFX_VERSION environment variable to be set to 10.3.0 in order for the card to work in ROCm. If this variable is not present, the app will crash on start. But the value that is currently set in start_gradio_ui_rocm.sh, causes my whole desktop environment to crash, which is worse. So I think it would be better to either not have this variable set at all or to make it automatic somehow based on the detected GPU.

To Reproduce
Steps to reproduce the behavior:

  1. Use an RX 6700 XT or possibly another RDNA 2 graphics card.
  2. Run the script start_gradio_ui_rocm.sh and wait.
  3. The desktop environment will crash.
  4. Remove the variable from the script and run it again. This time only the app crashes.
  5. Set the variable to HSA_OVERRIDE_GFX_VERSION=10.3.0 and the app will run fine (on this particular GPU).

Expected behavior
The script shouldn't crash the desktop environment on the user's operating system.

Desktop:

  • OS: Debian 13
  • App version: 0.1.2

Additional context
Everything works fine after I changed the value to 10.3.0. But other users might be confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions