InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Add support for ROCm version for gfx1151 (Rocm >= 6.4)

Open drag-c opened this issue 1 year ago • 59 comments

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

Install method

Manual

Operating system

Linux

GPU vendor

AMD (ROCm)

GPU model

8060s gfx1151

GPU VRAM

96GB

Version number

6.9.0

Browser

Firefox

System Information

AMD RYZEN AI MAX+ 395 w/ Radeon 8060S Linux Fedora 43: 6.17.7-300.fc43.x86_64

What happened

I'm trying to manually install invokeai so that I can choose to install ROCm version 6.4 (compatible with gfx1151), since the installer installs version 6.3.

uv pip install invokeai==6.9.0 --python 3.12 --python-preference only-managed --torch-backend=rocm6.4 --force-reinstall but

error: invalid value 'rocm6.4' for '--torch-backend <TORCH_BACKEND>'
  [possible values: auto, cpu, cu130, cu129, cu128, cu126, cu125, cu124, cu123, cu122, cu121, cu120, cu118, cu117, cu116, cu115, cu114, cu113, cu112, cu111, cu110, cu102, cu101, cu100, cu92, cu91, cu90, cu80, rocm6.3, rocm6.2.4, rocm6.2, rocm6.1, rocm6.0, rocm5.7, rocm5.6, rocm5.5, rocm5.4.2, rocm5.4, rocm5.3, rocm5.2, rocm5.1.1, rocm4.2, rocm4.1, rocm4.0.1, xpu]

  tip: a similar value exists: 'rocm6.2.4'

For more information, try '--help'.

I also tried the installation with AppImage, but at Launch, I get this error:

bitsandbytes library load error: Configured ROCm binary not found at /home/fed/invokeaiapp/.venv/lib/python3.12/site-packages/bitsandbytes/libbitsandbytes_rocm63.so Traceback (most recent call last): File "/home/fed/invokeaiapp/.venv/lib/python3.12/site-packages/bitsandbytes/cextension.py", line 313, in <module> lib = get_native_library() ^^^^^^^^^^^^^^^^^^^^ File "/home/fed/invokeaiapp/.venv/lib/python3.12/site-packages/bitsandbytes/cextension.py", line 282, in get_native_library raise RuntimeError(f"Configured {BNB_BACKEND} binary not found at {cuda_binary_path}") RuntimeError: Configured ROCm binary not found at /home/fed/invokeaiapp/.venv/lib/python3.12/site-packages/bitsandbytes/libbitsandbytes_rocm63.so

What you expected to happen

I want it to run successfully, like Comfyui

How to reproduce the problem

I'm trying to manually install invokeai so that I can choose to install ROCm version 6.4 (compatible with gfx1151), since the installer installs version 6.3.

uv pip install invokeai==6.9.0 --python 3.12 --python-preference only-managed --torch-backend=rocm6.4 --force-reinstall but

error: invalid value 'rocm6.4' for '--torch-backend <TORCH_BACKEND>'
  [possible values: auto, cpu, cu130, cu129, cu128, cu126, cu125, cu124, cu123, cu122, cu121, cu120, cu118, cu117, cu116, cu115, cu114, cu113, cu112, cu111, cu110, cu102, cu101, cu100, cu92, cu91, cu90, cu80, rocm6.3, rocm6.2.4, rocm6.2, rocm6.1, rocm6.0, rocm5.7, rocm5.6, rocm5.5, rocm5.4.2, rocm5.4, rocm5.3, rocm5.2, rocm5.1.1, rocm4.2, rocm4.1, rocm4.0.1, xpu]

  tip: a similar value exists: 'rocm6.2.4'

For more information, try '--help'.

Additional context

No response

Discord username

No response

drag-c avatar Nov 06 '25 10:11 drag-c

@drag-c --torch-backend is a feature of uv not invoke: https://docs.astral.sh/uv/reference/settings/#pip_torch-backend

If your system does have ROCM 6.4 installed, the auto mode should pick it up.

I was the one who updated the instructions due to the mix-matching difference between CUDA and ROCM; CUDA has support for mixing within the same family (e.g. 12.6 and 12.8 can work together) while ROCM does not support that, if you want 6.4 you must have 6.4 installed (either within the docker container or bare metal).

if not:

  1. Open a bug with uv via https://github.com/astral-sh/uv/issues to inform them that rocm 6.4 isn't being detected correctly
  2. fall back to using the --index-url https://download.pytorch.org/whl/rocm6.4 instead of --torch-backend

I should tell you, that InvokeAI has only been tested with 6.2.4 and is what is currently used in the docker images from https://github.com/invoke-ai/InvokeAI/pkgs/container/invokeai (I wrote the docker container for ROCM) so 6.4 may have crashes that others have no run into.

heathen711 avatar Nov 10 '25 21:11 heathen711

@drag-c for information, I've done a documentation update (still to be merged) about AMD Rocm support on invoke-ai:

https://github.com/invoke-ai/InvokeAI/pull/8546

@heathen711 for information: I've tested it with up to 6.9.0 and ROCm 7.1 it just works from gfx1030 up to gfx1201 so far (tested both).

Everything works perfectly fine. We just need to finally validate and push this documentation update.

ArKam avatar Nov 26 '25 11:11 ArKam

@ArKam

I'm very curious how you got this working with rocm 7.1. I have a Strix Halo (gfx1151) and have tried and tried with various docker-compose settings and docker run options to no avail. It looks like the invokeai docker image is tied to rocm6.3 regardless of what I specify as the backend.

I have tried using the linux install script, installing manually via uv/pip, using the docker image referenced in this issue with the following options:

sudo docker run -e "RENDER_GROUP_ID=992" --device /dev/kfd --device /dev/dri -p 9090:9090 -v ./models:/invokeai/models ghcr.io/invoke-ai/invokeai:v6.4.0-rocm

sudo docker run -e "RENDER_GROUP_ID=992" --device /dev/kfd --device /dev/dri -p 9090:9090 -v ./models:/invokeai/models ghcr.io/invoke-ai/invokeai:main-rocm

Here's the error I'm getting when I try to inference:

RuntimeError: HIP error: invalid device function HIP kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing AMD_SERIALIZE_KERNEL=3 Compile with TORCH_USE_HIP_DSA to enable device-side assertions.

gglass avatar Dec 07 '25 17:12 gglass

Apologies, I'm in the middle of a server rack re-build, so my AMD system is offline. Once Its complete I can test and then work with the devs to get things updated and merged (I don't have merge powers, I just poke people on discord to get them to review, which you can do to if you want, but I won't ask you to)

heathen711 avatar Dec 07 '25 19:12 heathen711

Did anyone manage to get progress on this issue? There was some issue and fixes on the AMD ROCm side in the meantime. It effectively means to ether ship rocm 6.4.4 or 7.2 in order to not run into any issues. heathen711 apparently quit the internet on dec 25.

BieHDC avatar Feb 07 '26 18:02 BieHDC

I got it working by doing the following steps:

  • Download the linux installer and install invoke like normal.
  • Exit invoke after it finishes installing.
  • cd /wherever/you/installed/invoke
  • source .venv/bin/activate
  • pip install --force-reinstall --index-url https://rocm.nightlies.amd.com/v2/gfx1151/ torch torchaudio torchvision
  • export AMD_SERIALIZE_KERNEL=3
  • export HSA_OVERRIDE_GFX_VERSION=11.0.0
  • .venv/bin/invokeai-web

This uses more recent pytorch wheels for rocm7.1+ and sets the GFX version manually. After that I was able to generate sdxl images as a test.

Hope this helps.

gglass avatar Feb 07 '26 20:02 gglass

Well thank god for email reports... my GitHub notifications were only coming from my work account not personal account...

Let me get the AMD GPU installed and I can work through this. I decommissioned the AMD server for a dual 4090 so I forgot about all of this...

Reminds me I never finished the mobile ui for InvokeAI...

heathen711 avatar Feb 07 '26 22:02 heathen711

* Download the linux installer and install invoke like normal.

By that you mean you used the installer appimage as intended and then you manually enter the venv it creates, patch it and run it manually every time by sourcing the venv and running invokeai-web?

Also thanks to both of you figuring this out, really appreciate it.

BieHDC avatar Feb 08 '26 10:02 BieHDC

* Download the linux installer and install invoke like normal.

By that you mean you used the installer appimage as intended and then you manually enter the venv it creates, patch it and run it manually every time by sourcing the venv and running invokeai-web?

Also thanks to both of you figuring this out, really appreciate it.

Yes. This describes my workaround exactly. Sorry for being unclear.

gglass avatar Feb 08 '26 15:02 gglass

Side note:

SDXL generation works well with no real issues.

Flux 2 generation works sporadically, with frequent system crashes during inferencing

Z-Image turbo does not work at all. It starts to run inferencing steps, then crashes consistently. (crashes consistently at 1024x1024. I was able to get it to generate a complete image at 512x512)

gglass avatar Feb 08 '26 17:02 gglass

@gglass Now that you have made my day i am about to make your day. You have these issues and lame performance because you installed the unpatched libraries, but thanks to your info i managed to figure out the good configuration.

The Steps:

  • Download the linux installer and install invoke like normal with the AMD preset
  • After the install open the dev console on the bottom left
  • Run uv pip install --force-reinstall --index-url https://rocm.nightlies.amd.com/v2-staging/gfx1151/ torch torchaudio torchvision
  • Edit .venv/bin/invokeai-web
  • Add the those lines at that place import os os.environ["TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL"] = "1" os.environ["MIOPEN_FIND_MODE"] = "FAST" # MIOPEN_FIND_MODE=2 os.environ["MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD"] = "0" os.environ["PYTORCH_MIOPEN_SUGGEST_NHWC"] = "0" os.environ["TORCH_BLAS_PREFER_HIPBLASLT"] = "1"
#!/bin/sh
'''exec' "$(dirname -- "$(realpath -- "$0")")"/'python3' "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import os
os.environ["TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL"] = "1"
os.environ["MIOPEN_FIND_MODE"] = "FAST" # MIOPEN_FIND_MODE=2
os.environ["MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD"] = "0"
os.environ["PYTORCH_MIOPEN_SUGGEST_NHWC"] = "0"
os.environ["TORCH_BLAS_PREFER_HIPBLASLT"] = "1"
import sys
from invokeai.app.run_app import run_app
if __name__ == "__main__":
    if sys.argv[0].endswith("-script.pyw"):
        sys.argv[0] = sys.argv[0][:-11]
    elif sys.argv[0].endswith(".exe"):
        sys.argv[0] = sys.argv[0][:-4]
    sys.exit(run_app())
  • Close the dev console and launch invoke with the Launch button

Keep in mind that you need to repeat those steps any time you upgrade or reinstall. This way you can also use the launchers interface and not only the web interface.

I took the following benchmark: Juggernaut XL v9 dpm++ 3m karras - 30 steps - 7.5 cfg - 1024x1024 Without TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL: 2.5 seconds per iteration - 81 seconds total With TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL: 1.72 iterations per seconds - 23 seconds total (seconds per iteration turns into iterations per second)

I will test Flux and Z-Image too, but i expect them to work just fine as those works under comfy also just fine, if not i will update this post. Everyone with a Strix Halo system, i can not stress enough that you need to follow kyuz0 for actually making rocm a pleasant and working experience! Sources: https://github.com/kyuz0/amd-strix-halo-comfyui-toolboxes/blob/3f2eb14c58ff7c845d9709166e10e8d3ab6736d6/Dockerfile#L30 https://github.com/kyuz0/amd-strix-halo-comfyui-toolboxes/blob/3f2eb14c58ff7c845d9709166e10e8d3ab6736d6/scripts/01-rocm-env-for-triton.sh#L5

Edit: More benchmarks all at 1024x1024 ZIT - 2.5 sec per iter - 23.5 sec total 8StepsHyperFlux - 3.28 sec per iter - 38 sec total Flux Schnell - 3 sec per iter - 16 sec total Flux Dev - 3.2 sec per iter - 167 sec total Flux Kontent - 7.6 sec per iter - 221 sec total Private SDXL Model - 1 sec per iter - 38 sec total

~~Another thing, first uses of a model can take up to 5min, some even 10min. iirc it does some converting to another format? the system becomes laggy and unresponsive during that, but successive runs run as you would expect. However this might happen again if you change the output resolution for some reason, so it might be a rocm internal cache thing. It also might crash after this conversion for another some reason, but if you restart it wont need to convert or whatever its doing again.~~

Edit 2: I did some more internet searching and found a few more env vars that fix this issue and some more: https://github.com/kyuz0/amd-strix-halo-benchmarking-scripts/blob/bc276dbc3c13c8b7946434e541a780721b7be692/README.md?plain=1#L21 https://github.com/Comfy-Org/ComfyUI/pull/12349/changes#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R374

  • os.environ["MIOPEN_FIND_MODE"] = "FAST" # MIOPEN_FIND_MODE=2
  • os.environ["MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD"] = "0"

https://github.com/Comfy-Org/ComfyUI/pull/11381/changes#diff-c43913f04f43d976f3ec095cfcb3981df79c55947e3efbe70799cd374905c773R354

  • os.environ["PYTORCH_MIOPEN_SUGGEST_NHWC"] = "0"

https://github.com/kyuz0/amd-strix-halo-comfyui-toolboxes/blob/3f2eb14c58ff7c845d9709166e10e8d3ab6736d6/scripts/benchmark_workflows.py#L192C14-L192C47

  • os.environ["TORCH_BLAS_PREFER_HIPBLASLT"] = "1"

These fixed all the outstanding issues i was having but i cant tell you which actually fixed it since i just used all of them and observed no performance degradation. A read fix should figure that out but the find mode alone might do it. I added those vars above.

BieHDC avatar Feb 08 '26 18:02 BieHDC

Dropping this since I have been MIA; Got my AMD server setup. Going to start by just running what is on main, then what this PR asks for, and then review all the comments.

heathen711 avatar Feb 09 '26 00:02 heathen711

@BieHDC 's steps are nice, BUT they do not play well with a requirements.txt since the TheRock's CI system builds a link per device. The CI system also means that it won't be reproducible, one build could be good, the next bad, etc.

PyTorch doesn't have the latest 7.2, but does have 7.1

https://rocm.docs.amd.com/en/latest/compatibility/compatibility-matrix.html#past-versions-of-rocm-compatibility-matrix shows the full breakdown, and 1151 was added in 7.0.

So 6.4 is NOT going to work for this.

  • TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL -> AOTriton is default so this is just old flag being kept around, or maybe means more in TheRock as they might be expending it's usage.
  • MIOPEN_FIND_MODE -> I'm conflicted, this make some assumptions and settles for a "good enough", the slow can find the better path during the first gen, the second gen should be much faster.
  • MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD -> Funny you have this and MIOPEN_FIND_MODE, since this is to skip the slowest paths, I think MIOPEN_FIND_MODE with 5 or 6 plus this is the correct combination.
  • PYTORCH_MIOPEN_SUGGEST_NHWC -> NHWC is for MI2/MI3 series, so off make sense, and defaults to 0 < rocm 7.0, so we should include this
  • TORCH_BLAS_PREFER_HIPBLASLT -> Hardware support based, has issues with the APUs so that makes sense BUT does not have issues on other cards, so this is one that I think will have to be in the docs/FAQs since we can't hard code this

So plan:

  • [x] clean install 7.1 rocm and amdGPU on base system
  • [x] manual venv
  • [x] update requirements.txt
  • [x] install
  • [x] test sdxl
  • [ ] test flux.1
  • [ ] test flux.2
  • [ ] test z-image
  • [ ] test again via docker image

heathen711 avatar Feb 09 '26 07:02 heathen711

@BieHDC 's steps are nice, BUT they do not play well with a requirements.txt since the TheRock's CI system builds a link per device.

To clarify, i documented all this here for people who want InvokeAI to work right now on Strix Halo so no one else has to searx around for all the pieces. All i did was to reference kyuz0 preset and check what comfy does and just copied them over not really knowing what is actually relevant.

* MIOPEN_FIND_MODE -> I'm conflicted, this make some assumptions and settles for a "good enough", the slow can find the better path during the first gen, the second gen should be much faster.

This is absolutely required for usage and makes no real world speed difference in generation time. You dont want to stall users any time they just slighly change the resolution for a few minutes each time nor do you want to prerun every possibility as it would take very long still and would be inefficient.

* MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD -> Funny you have this and MIOPEN_FIND_MODE, since this is to skip the slowest paths, I think MIOPEN_FIND_MODE with 5 or 6 plus this is the correct combination.

Subject to benchmarking in the end.

* TORCH_BLAS_PREFER_HIPBLASLT -> Hardware support based, has issues with the APUs so that makes sense BUT does not have issues on other cards, so this is one that I think will have to be in the docs/FAQs since we can't hard code this

If there are per case env vars in the end there should be a category in the launcher settings to easily toggle it on or of. At the very least as settings in the yaml file.

Feel free to ping me if you need testers.

BieHDC avatar Feb 09 '26 10:02 BieHDC

@gglass Now that you have made my day i am about to make your day. You have these issues and lame performance because you installed the unpatched libraries, but thanks to your info i managed to figure out the good configuration.

The Steps:

* Download the linux installer and install invoke like normal with the AMD preset

* After the install open the dev console on the bottom left

* Run `uv pip install --force-reinstall --index-url https://rocm.nightlies.amd.com/v2-staging/gfx1151/ torch torchaudio torchvision`

* Edit `.venv/bin/invokeai-web`

* Add the those lines at that place
  `import os`
  `os.environ["TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL"] = "1"`
  `os.environ["MIOPEN_FIND_MODE"] = "FAST" # MIOPEN_FIND_MODE=2`
  `os.environ["MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD"] = "0"`
  `os.environ["PYTORCH_MIOPEN_SUGGEST_NHWC"] = "0"`
  `os.environ["TORCH_BLAS_PREFER_HIPBLASLT"] = "1"`

#!/bin/sh '''exec' "$(dirname -- "$(realpath -- "$0")")"/'python3' "$0" "$@" ' '''

-- coding: utf-8 --

import os os.environ["TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL"] = "1" os.environ["MIOPEN_FIND_MODE"] = "FAST" # MIOPEN_FIND_MODE=2 os.environ["MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD"] = "0" os.environ["PYTORCH_MIOPEN_SUGGEST_NHWC"] = "0" os.environ["TORCH_BLAS_PREFER_HIPBLASLT"] = "1" import sys from invokeai.app.run_app import run_app if name == "main": if sys.argv[0].endswith("-script.pyw"): sys.argv[0] = sys.argv[0][:-11] elif sys.argv[0].endswith(".exe"): sys.argv[0] = sys.argv[0][:-4] sys.exit(run_app())

* Close the dev console and launch invoke with the Launch button

Keep in mind that you need to repeat those steps any time you upgrade or reinstall. This way you can also use the launchers interface and not only the web interface.

I took the following benchmark: Juggernaut XL v9 dpm++ 3m karras - 30 steps - 7.5 cfg - 1024x1024 Without TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL: 2.5 seconds per iteration - 81 seconds total With TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL: 1.72 iterations per seconds - 23 seconds total (seconds per iteration turns into iterations per second)

I will test Flux and Z-Image too, but i expect them to work just fine as those works under comfy also just fine, if not i will update this post. Everyone with a Strix Halo system, i can not stress enough that you need to follow kyuz0 for actually making rocm a pleasant and working experience! Sources: https://github.com/kyuz0/amd-strix-halo-comfyui-toolboxes/blob/3f2eb14c58ff7c845d9709166e10e8d3ab6736d6/Dockerfile#L30 https://github.com/kyuz0/amd-strix-halo-comfyui-toolboxes/blob/3f2eb14c58ff7c845d9709166e10e8d3ab6736d6/scripts/01-rocm-env-for-triton.sh#L5

Edit: More benchmarks all at 1024x1024 ZIT - 2.5 sec per iter - 23.5 sec total 8StepsHyperFlux - 3.28 sec per iter - 38 sec total Flux Schnell - 3 sec per iter - 16 sec total Flux Dev - 3.2 sec per iter - 167 sec total Flux Kontent - 7.6 sec per iter - 221 sec total Private SDXL Model - 1 sec per iter - 38 sec total

~Another thing, first uses of a model can take up to 5min, some even 10min. iirc it does some converting to another format? the system becomes laggy and unresponsive during that, but successive runs run as you would expect. However this might happen again if you change the output resolution for some reason, so it might be a rocm internal cache thing. It also might crash after this conversion for another some reason, but if you restart it wont need to convert or whatever its doing again.~

Edit 2: I did some more internet searching and found a few more env vars that fix this issue and some more: https://github.com/kyuz0/amd-strix-halo-benchmarking-scripts/blob/bc276dbc3c13c8b7946434e541a780721b7be692/README.md?plain=1#L21 https://github.com/Comfy-Org/ComfyUI/pull/12349/changes#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R374

* `os.environ["MIOPEN_FIND_MODE"] = "FAST" # MIOPEN_FIND_MODE=2`

* `os.environ["MIOPEN_DEBUG_CONV_DIRECT_NAIVE_CONV_FWD"] = "0"`

https://github.com/Comfy-Org/ComfyUI/pull/11381/changes#diff-c43913f04f43d976f3ec095cfcb3981df79c55947e3efbe70799cd374905c773R354

* `os.environ["PYTORCH_MIOPEN_SUGGEST_NHWC"] = "0"`

https://github.com/kyuz0/amd-strix-halo-comfyui-toolboxes/blob/3f2eb14c58ff7c845d9709166e10e8d3ab6736d6/scripts/benchmark_workflows.py#L192C14-L192C47

* `os.environ["TORCH_BLAS_PREFER_HIPBLASLT"] = "1"`

These fixed all the outstanding issues i was having but i cant tell you which actually fixed it since i just used all of them and observed no performance degradation. A read fix should figure that out but the find mode alone might do it. I added those vars above.

You have indeed made my day. Got it up and running with no issues.

Image

gglass avatar Feb 09 '26 15:02 gglass

@BieHDC thank you for the response.

I do think some GPU awareness needs to be designed. I'm sure there are more GPU specific needs out there, like RDNA 2 vs RDNA 3 differences. So while I think the launcher has been the historical place (per the 3k series option for Nvidia GPUs) I do not think that will work here. I feel like we're going to need a run-once script or warm-up code that evals the system and makes the right decision, like in the setup.py. The problem is that needs runtime code to work, which won't exist in the docker builds.

So I'm trying to find the middle ground between. Obviously you can build the right setup manually, but no one wants that. Also assumption can be bad, like the script detects something, but someone is running a custom blend of support (like they compiled something themselves) and our assumptions are now invalid.

What I know I can do today: Update and document; then we can plan to discuss a path forward to getting the auto-magic for GPU specific needs.

Thoughts? (for everyone on this thread too, not just BieHDC)

heathen711 avatar Feb 09 '26 16:02 heathen711

I do think some GPU awareness needs to be designed. I'm sure there are more GPU specific needs out there, like RDNA 2 vs RDNA 3 differences. So while I think the launcher has been the historical place (per the 3k series option for Nvidia GPUs) I do not think that will work here. I feel like we're going to need a run-once script or warm-up code that evals the system and makes the right decision, like in the setup.py.

Technically you would need to just ship rocminfo and run it for detection. But it should be accompanied by a override selection anyway since a certain card might not yet be in the list where that gfx override comes into play where you can select a similar card. But also when going to https://rocm.nightlies.amd.com/v2-staging/ it could also be a selection box with example cards next to the gfx number. This might be the better way to go for a v1 before adding autodetect in a v2. For docker i cant say anything as i am not familiar with it, but i guess its ether one dockerfile per gfx-cluster or a first run setup with autodetect or passing in an env var to override that.

someone is running a custom blend of support (like they compiled something themselves) and our assumptions are now invalid.

Then it can also be assumed they know which override to select. This group would be too tiny to spend time on working around their custom setup.

BieHDC avatar Feb 09 '26 18:02 BieHDC

Technically you would need to just ship rocminfo and run it for detection. But it should be accompanied by an override selection anyway since a certain card might not yet be in the list where that gfx override comes into play where you can select a similar card. But also when going to https://rocm.nightlies.amd.com/v2-staging/ it could also be a selection box with example cards next to the gfx number. This might be the better way to go for a v1 before adding autodetect in a v2.

I can see this working in the launcher, but not the manual flow and the docker flow; needs more thinking.

Blind asking first to see if you know from your own reading: is there documentation about what the rocm.nightlies.amd.com has over using the PyTorch wheels? why they chose to build per gfx instead of a fat build with all? (looking to see if there are documented improvements to warrant adoption)

heathen711 avatar Feb 09 '26 19:02 heathen711

@BieHDC @gglass can you run this benchmark script and report the results back? I'm trying out different env configs to see what times look like. My card is RDNA 2 so I'm going to see different gains than you would.

amd-gpu-benchmark-suite.py

heathen711 avatar Feb 10 '26 08:02 heathen711