Repository navigation
Docker ROCm image: reach the GPU through WSL2's DXG bridge, not only /dev/kfd - #11212
Conversation
…cker-wsl-dxg # Conflicts: # docker/run.sh
|
Merged main; head |
|
Pushed |
|
Confirmed docker/entrypoint-rocm.sh still refuses on a host with only /dev/dxg, and the new branch leaves the /dev/kfd path untouched, with tests covering both. Will get this reviewed. |
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at 89c26a4a6c there, which is this PR's 8587951b2 replayed onto main df18fa7bd. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
1 finding, inline below where the line is on this diff.
…its header a launch line that works The workflow built only Dockerfile.rocm, so Dockerfile.studio-rocm was never published and the comment saying CI pins its refs described a job that did not exist. build-studio now layers it on the base this run pushed, by digest and with the same UNSLOTH_REF / zoo ref, and tag-studio gives it every base tag with a -studio leaf under the same gates (:studio beside :latest). The Hub page syncs once both moved and documents the tag. The header pointed WSL2 users at `docker/run.sh --rocm`, which has no DXG path on main (that is unslothai#11212), picks :latest, and publishes no port; the by-hand line passed group names, which the image cannot resolve. Both lines now say what actually works, and WSL2 is named as waiting on unslothai#11212.
librocdxg dlopens libdxcore from /usr/lib/wsl/lib, which the image does not have on its search path. A container started by hand with only the librocdxg mount from the old message passed check 1 and then failed hsa_init. The message now carries both mounts and LD_LIBRARY_PATH, matching run.sh, and stops claiming the image should have shipped the library.
|
Pushed |
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at 01e0a1fb58 there, which is this PR's aa86470e8 replayed onto main df18fa7bd. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
1 finding, inline below where the line is on this diff.
…Docker Hub page README.md said the ROCm image needs native Linux, and the Docker Hub quick start built its flags from an unconditional --device /dev/kfd, which the daemon rejects on WSL before the entrypoint runs. Both now carry the DXG path: the /dev/dxg node, the runtime opt-in, the librocdxg and libdxcore mounts run.sh passes, and the per-architecture build the generic image's torch makes necessary. A test pins the flags to the ones run.sh emits.
|
Pushed |
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at 5b2ee32b33 there, which is this PR's ef21f162f replayed onto main 9f76c5a3e. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
1 finding, inline below where the line is on this diff.
run.sh defaults to unsloth/unsloth-rocm:latest, the generic image the entrypoint refuses on DXG, so the Hub page's launcher and smoke-test commands sent a WSL user straight back to the refusal after telling them to build a per-arch image. Both now pass UNSLOTH_IMAGE=unsloth-rocm:latest on WSL, as build.sh prints after a build, and the README's launcher sentence says the same. Test pinned.
|
Pushed |
Dockerfile.rocm maps only gfx1150/1151/1152 and gfx1200/1201 to AMD's per-arch indexes, so the docs and the DXG refusal message were sending an RDNA3 owner to a build that fails at once. They now name the covered set and say RDNA3 has no bridge path until the Dockerfile maps gfx1100-gfx1103 to gfx110X-all, as install.sh already does for a bare host. Pinned in the docs test.
|
Pushed CI at |
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at bbfd4bcb1d there, which is this PR's d47296cb7 replayed onto main 9f76c5a3e. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
Codex found no major issues. Its comment: https://github.com/LeoBorcherding/unsloth-staging-review/pull/6#issuecomment-5736271841
…n.sh passes Over the bridge rocm-smi prints 'Driver not initialized (amdgpu not found in modules)' (measured in the container), and check 2 then advised --device /dev/dri and group ids, neither of which exists on WSL. The entrypoint now skips it on that path with a one-line note. run.sh probed /usr/lib/wsl/lib on the real root, ignoring UNSLOTH_DEV_ROOT, so no test could assert the libdxcore mount and LD_LIBRARY_PATH and a Linux runner passed without them. The probe honours the dev root, a missing dir is named instead of silently dropped, and both flags are pinned.
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at 4ddd91939d there, which is this PR's 782ead3c2 replayed onto main c7d8980a2. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
1 finding, inline below where the line is on this diff.
| librocdxg instead. The image cannot ship that library (its build needs Windows | ||
| SDK headers), so it comes off the host, along with the libdxcore it dlopens from | ||
| WSL's own lib directory. The bundled wrapper mounts both: | ||
| bash docker/run.sh --rocm <cmd> |
There was a problem hiding this comment.
P2 Keep the per-architecture image in DXG recovery
When a WSL user reaches this error after starting their locally built per-architecture image without the bridge mount, the suggested bash docker/run.sh --rocm silently switches to unsloth/unsloth-rocm:latest via run.sh:147; that generic image is then deliberately rejected by the DXG rocprofiler check at lines 177-190. Fresh evidence after the earlier documentation finding is that DOCKERHUB-ROCM.md:52-57 now correctly supplies UNSLOTH_IMAGE=unsloth-rocm:latest, while this newly added recovery path-and the manual command immediately below it-still omit the local image. Include the same image override here so the advertised recovery can actually start.
Codex's original comment: https://github.com/LeoBorcherding/unsloth-staging-review/pull/6#discussion_r4051179680
…un.sh run.sh defaults to unsloth/unsloth-rocm:latest, which the bridge refuses, so the librocdxg recovery, the missing-kfd Windows note and the rocprofiler refusal all sent a WSL user back to the generic image. Each now gives UNSLOTH_IMAGE=unsloth-rocm:latest bash docker/run.sh --rocm, and the by-hand command names the local build. Pinned in the refuse tests.
|
Pushed Three entrypoint messages handed a WSL user to |
…gpu advice When torch.cuda.is_available() was False on the bridge, the branch said the host amdgpu advice did not apply and then printed it anyway: rocm-smi, dkms, rebuild against the host ROCm. WSL has no host amdgpu stack. It now names the two causes measured on the bridge, a libdxcore that cannot load (the /usr/lib/wsl/lib mount) and the Windows driver, and exits. Test added.
|
Pushed When |
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at fe3b8fe870 there, which is this PR's f5ee8ce9e replayed onto main 768d64403. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
Codex found no major issues. Its comment: https://github.com/LeoBorcherding/unsloth-staging-review/pull/6#issuecomment-5742931857
LeoBorcherding
left a comment
There was a problem hiding this comment.
Codex findings, via a mirror
Codex does not answer on this repository, so it ran against a copy of this pull request's commits at LeoBorcherding/unsloth-staging-review#6. It looked at 4757a73a34 there, which is this PR's 981f8af9e replayed onto main 768d64403. Nothing was reviewed or resolved on the copy: the findings are here, in Codex's words, to be worked through on this pull request.
Codex found no major issues. Its comment: https://github.com/LeoBorcherding/unsloth-staging-review/pull/6#issuecomment-5742971602
|
Review record for #11212, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#24. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1 — reviewed mirror
|
#11218) * Docker ROCm image: ship Unsloth Studio, as the CUDA image already does * Assert the base ROCm leaf, not the exact torch version, in the Studio venv * Publish the ROCm Studio image from docker-publish-rocm.yml, and give its header a launch line that works The workflow built only Dockerfile.rocm, so Dockerfile.studio-rocm was never published and the comment saying CI pins its refs described a job that did not exist. build-studio now layers it on the base this run pushed, by digest and with the same UNSLOTH_REF / zoo ref, and tag-studio gives it every base tag with a -studio leaf under the same gates (:studio beside :latest). The Hub page syncs once both moved and documents the tag. The header pointed WSL2 users at `docker/run.sh --rocm`, which has no DXG path on main (that is #11212), picks :latest, and publishes no port; the by-hand line passed group names, which the image cannot resolve. Both lines now say what actually works, and WSL2 is named as waiting on #11212. * ROCm Studio image: survive a restart with UNSLOTH_STUDIO_PASSWORD set, tell install.sh the gfx, and move no stable tag before both builds exist The CMD handed Studio UNSLOTH_STUDIO_PASSWORD on every start. It only sets the first admin password and `unsloth studio` exits 1 when given one after that, so a `docker restart` with the variable still set (a Compose file) never came back up. studio_launch_rocm.sh is now the CMD: as the CUDA launcher does, it writes the value to a root-only file that studio_run.sh hands over only while no password is stored, and drops it from Studio's environment. The copied studio_password.sh went, since nothing ran it and it waits on JupyterLab. install.sh only skips bitsandbytes on gfx906 when told the arch, and the GPU-less builder cannot probe it, so a gfx906-studio image would have shipped a 4-bit backend with no kernels. The base's ROCM_GFX is forwarded as UNSLOTH_ROCM_GFX_ARCH, and the build asserts a gfx906 Studio venv has no bitsandbytes. The base tags moved before build-studio ran, so a Studio failure or a second overlapping run could leave :latest and :studio from different builds. Both digests are now built first, and the tag job creates both manifests back to back; tag-studio and its job-scheduling gap are gone. * Hub page: name the -studio twins, since latest's is :studio and not latest-studio * Serialize stable tag promotion, so latest and studio cannot split The workflow concurrency group carries github.run_id on main, deliberately, so a dispatch runs alongside the cron instead of discarding it. That was harmless while one stable tag moved. This workflow now promotes two, and DOCKERHUB-ROCM.md documents them as a pair: `studio` is the Studio twin of `latest`. Unserialized, two runs interleave: A writes latest, B writes latest and studio, A writes studio, and the pair stays sourced from different builds until the next run. Reachable rather than theoretical, since the cadence is a weekly cron plus dispatch and a ROCm run takes hours. The tag job gets its own group with no run_id, so stable promotion queues across runs. cancel-in-progress stays false: a cancelled promotion is the split this exists to prevent. The existing test comment claimed one job "back to back" was enough for another run not to land between the two writes. That is true within a run and not across runs, so it is corrected rather than left to reassure the next reader. Negative control: with the test present and the concurrency block reverted, test_stable_tag_promotion_is_serialized_across_runs fails (1 failed, 44 passed); with the fix, 45 pass. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert the job-level concurrency group; it loses whole runs 6f19113 added a shared concurrency group to the tag job to stop two runs splitting the latest/studio pair. That trades a small window for a bigger loss: GitHub concurrency is not a queue. A shared group holds one running job and one pending job, and a third arrival cancels the pending one, which this repo has already written down twice in tests/studio/test_main_runs_survive_merge_bursts.py ("any existing pending job or workflow in the same concurrency group will be canceled"). For an override build the tag job is the only step that writes the run's SHA tags, so a cancelled one leaves two pushed digests with no tags at all. The pairing window itself is not this workflow's to close. docker-publish.yml promotes latest and core from the same per-run group with no job-level group, so the shape is repo-wide and accepted; closing it needs a real lock that preserves every arrival, not concurrency, and that belongs in its own change against both workflows. The test comment stays corrected, because the claim that started this ("one job, back to back, so another run cannot land between them") is true within a run and false across runs, and it is what hid the window. It now says what is actually true, including why the obvious fix is worse. --------- Co-authored-by: Daniel Han <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…ion of it This branch is stacked on unslothai#11218, which has since been squash-merged, so main and the branch carry the same work under different SHAs and three files conflicted: the ROCm publish workflow, the Hub page and Dockerfile.studio-rocm. No commit on main has touched any of them since that merge, so the branch side is the later revision in each case and is kept. Two places needed more than "keep ours": The Hub page. The branch predates unslothai#11212, so taking its copy wholesale silently reverted the WSL2 section that PR added: the /dev/dxg flags, the librocdxg mount and the per-architecture build note. Rebuilt from main instead, with only this branch's three real additions applied (the studio tag row, the studio paragraph, and 8888 in the run command). test_the_hub_page_gives_the_same_wsl_ flags_as_run_sh caught the revert. Two tests in test_docker_rocm.py still pinned unslothai#11218's shape, which this PR deliberately replaces: - the image now runs the shared studio_launch.sh under supervisord rather than the single-service studio_launch_rocm.sh, so the assertion follows the Dockerfile, and the supervisord program list is covered by the new suite. - the auto-merge left TWO copies of the publish test, the branch's updated one and main's older one, which asserts `"tag-studio" not in wf["jobs"]`. That is exactly the job this PR adds, so the stale copy is removed rather than the survivor weakened. 778 docker tests pass, 2 skipped.
…/dev/kfd (unslothai#11212) * Docker ROCm image: reach the GPU through WSL2 DXG, not only /dev/kfd * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Refuse only librocprofiler-sdk on the DXG bridge, not every rocprofiler name * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Name the libdxcore mount in the DXG recovery message, not only librocdxg librocdxg dlopens libdxcore from /usr/lib/wsl/lib, which the image does not have on its search path. A container started by hand with only the librocdxg mount from the old message passed check 1 and then failed hsa_init. The message now carries both mounts and LD_LIBRARY_PATH, matching run.sh, and stops claiming the image should have shipped the library. * Document the WSL2 DXG path where users actually read: README and the Docker Hub page README.md said the ROCm image needs native Linux, and the Docker Hub quick start built its flags from an unconditional --device /dev/kfd, which the daemon rejects on WSL before the entrypoint runs. Both now carry the DXG path: the /dev/dxg node, the runtime opt-in, the librocdxg and libdxcore mounts run.sh passes, and the per-architecture build the generic image's torch makes necessary. A test pins the flags to the ones run.sh emits. * Name the local per-arch image in the WSL launcher and smoke commands run.sh defaults to unsloth/unsloth-rocm:latest, the generic image the entrypoint refuses on DXG, so the Hub page's launcher and smoke-test commands sent a WSL user straight back to the refusal after telling them to build a per-arch image. Both now pass UNSLOTH_IMAGE=unsloth-rocm:latest on WSL, as build.sh prints after a build, and the README's launcher sentence says the same. Test pinned. * Say which arches the WSL per-arch build covers: no RDNA3 yet Dockerfile.rocm maps only gfx1150/1151/1152 and gfx1200/1201 to AMD's per-arch indexes, so the docs and the DXG refusal message were sending an RDNA3 owner to a build that fails at once. They now name the covered set and say RDNA3 has no bridge path until the Dockerfile maps gfx1100-gfx1103 to gfx110X-all, as install.sh already does for a bare host. Pinned in the docs test. * DXG path: skip the rocm-smi advisory, and test the libdxcore mount run.sh passes Over the bridge rocm-smi prints 'Driver not initialized (amdgpu not found in modules)' (measured in the container), and check 2 then advised --device /dev/dri and group ids, neither of which exists on WSL. The entrypoint now skips it on that path with a one-line note. run.sh probed /usr/lib/wsl/lib on the real root, ignoring UNSLOTH_DEV_ROOT, so no test could assert the libdxcore mount and LD_LIBRARY_PATH and a Linux runner passed without them. The probe honours the dev root, a missing dir is named instead of silently dropped, and both flags are pinned. * Name the per-arch image in every DXG message that hands the user to run.sh run.sh defaults to unsloth/unsloth-rocm:latest, which the bridge refuses, so the librocdxg recovery, the missing-kfd Windows note and the rocprofiler refusal all sent a WSL user back to the generic image. Each now gives UNSLOTH_IMAGE=unsloth-rocm:latest bash docker/run.sh --rocm, and the by-hand command names the local build. Pinned in the refuse tests. * DXG torch failure: give the bridge's own causes and stop, not the amdgpu advice When torch.cuda.is_available() was False on the bridge, the branch said the host amdgpu advice did not apply and then printed it anyway: rocm-smi, dkms, rebuild against the host ROCm. WSL has no host amdgpu stack. It now names the two causes measured on the bridge, a libdxcore that cannot load (the /usr/lib/wsl/lib mount) and the Windows driver, and exits. Test added. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Han <[email protected]>
unslothai#11218) * Docker ROCm image: ship Unsloth Studio, as the CUDA image already does * Assert the base ROCm leaf, not the exact torch version, in the Studio venv * Publish the ROCm Studio image from docker-publish-rocm.yml, and give its header a launch line that works The workflow built only Dockerfile.rocm, so Dockerfile.studio-rocm was never published and the comment saying CI pins its refs described a job that did not exist. build-studio now layers it on the base this run pushed, by digest and with the same UNSLOTH_REF / zoo ref, and tag-studio gives it every base tag with a -studio leaf under the same gates (:studio beside :latest). The Hub page syncs once both moved and documents the tag. The header pointed WSL2 users at `docker/run.sh --rocm`, which has no DXG path on main (that is unslothai#11212), picks :latest, and publishes no port; the by-hand line passed group names, which the image cannot resolve. Both lines now say what actually works, and WSL2 is named as waiting on unslothai#11212. * ROCm Studio image: survive a restart with UNSLOTH_STUDIO_PASSWORD set, tell install.sh the gfx, and move no stable tag before both builds exist The CMD handed Studio UNSLOTH_STUDIO_PASSWORD on every start. It only sets the first admin password and `unsloth studio` exits 1 when given one after that, so a `docker restart` with the variable still set (a Compose file) never came back up. studio_launch_rocm.sh is now the CMD: as the CUDA launcher does, it writes the value to a root-only file that studio_run.sh hands over only while no password is stored, and drops it from Studio's environment. The copied studio_password.sh went, since nothing ran it and it waits on JupyterLab. install.sh only skips bitsandbytes on gfx906 when told the arch, and the GPU-less builder cannot probe it, so a gfx906-studio image would have shipped a 4-bit backend with no kernels. The base's ROCM_GFX is forwarded as UNSLOTH_ROCM_GFX_ARCH, and the build asserts a gfx906 Studio venv has no bitsandbytes. The base tags moved before build-studio ran, so a Studio failure or a second overlapping run could leave :latest and :studio from different builds. Both digests are now built first, and the tag job creates both manifests back to back; tag-studio and its job-scheduling gap are gone. * Hub page: name the -studio twins, since latest's is :studio and not latest-studio * Serialize stable tag promotion, so latest and studio cannot split The workflow concurrency group carries github.run_id on main, deliberately, so a dispatch runs alongside the cron instead of discarding it. That was harmless while one stable tag moved. This workflow now promotes two, and DOCKERHUB-ROCM.md documents them as a pair: `studio` is the Studio twin of `latest`. Unserialized, two runs interleave: A writes latest, B writes latest and studio, A writes studio, and the pair stays sourced from different builds until the next run. Reachable rather than theoretical, since the cadence is a weekly cron plus dispatch and a ROCm run takes hours. The tag job gets its own group with no run_id, so stable promotion queues across runs. cancel-in-progress stays false: a cancelled promotion is the split this exists to prevent. The existing test comment claimed one job "back to back" was enough for another run not to land between the two writes. That is true within a run and not across runs, so it is corrected rather than left to reassure the next reader. Negative control: with the test present and the concurrency block reverted, test_stable_tag_promotion_is_serialized_across_runs fails (1 failed, 44 passed); with the fix, 45 pass. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert the job-level concurrency group; it loses whole runs 6f19113 added a shared concurrency group to the tag job to stop two runs splitting the latest/studio pair. That trades a small window for a bigger loss: GitHub concurrency is not a queue. A shared group holds one running job and one pending job, and a third arrival cancels the pending one, which this repo has already written down twice in tests/studio/test_main_runs_survive_merge_bursts.py ("any existing pending job or workflow in the same concurrency group will be canceled"). For an override build the tag job is the only step that writes the run's SHA tags, so a cancelled one leaves two pushed digests with no tags at all. The pairing window itself is not this workflow's to close. docker-publish.yml promotes latest and core from the same per-run group with no job-level group, so the shape is repo-wide and accepted; closing it needs a real lock that preserves every arrival, not concurrency, and that belongs in its own change against both workflows. The test comment stays corrected, because the claim that started this ("one job, back to back, so another run cannot land between them") is true within a run and false across runs, and it is what hid the window. It now says what is actually true, including why the obvious fix is worse. --------- Co-authored-by: Daniel Han <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Closes part of #5405.
The ROCm image refused to start on Windows because its entrypoint gates on
/dev/kfd, which WSL2 never has. The card is still reachable: AMD's DXG bridge (/dev/dxgpluslibrocdxg) is whatinstall.shalready uses on a WSL host, and a container can use it too.The real blocker was rocprofiler, not DXG.
torch 2.12.1+rocm7.2from pytorch.org bundleslibrocprofiler-sdk.so, which enumerates GPUs from the KFD sysfs topology and aborts when that disagrees with HSA:AMD's per-arch wheels bundle no rocprofiler, and
torch 2.11.0+rocm7.2ships only the harmless-register.so. So on WSL this is a per-arch image (ROCM_GFX=<gfx> bash docker/build.sh --rocm) until the gfx tags are published.What changed
/dev/kfd, accept/dev/dxgpluslibrocdxgand exportHSA_ENABLE_DXG_DETECTION=1. Before the firsttorch.cudacall, refuse a torch that bundleslibrocprofiler-sdkwith a message instead of a glog abort. On the bridge, skip the rocm-smi advisory (it needs amdgpu sysfs), and when torch cannot see the device give the bridge's own two causes instead of the amdgpu driver advice. Every message that hands a WSL user torun.shnames the per-arch build, sincerun.shdefaults to the published image. The KFD checks are unchanged.--device /dev/dxg,HSA_ENABLE_DXG_DETECTION=1, the host'slibrocdxg, and/usr/lib/wsl/libwithLD_LIBRARY_PATHset, for thelibdxcoreit dlopens. The image cannot shiplibrocdxg: its build needs Windows SDK headers.Dockerfile.rocmdoes not mapgfx110X-all; that is a separate change.tests/python/test_docker_rocm.py, 48 passed 1 skipped at981f8af9e2(pre-commit.ci line splits on top off5ee8ce9ec). The DXG library search and the WSL lib dir are injectable, so a test cannot answer for the runner's own ROCm.Measured
One box: Radeon AI PRO R9700 (gfx1201), Windows 11 26200, WSL2 Ubuntu 24.04 (kernel 6.6.114, only
/dev/dxg), host ROCm 7.2.1, docker 29.8.1 inside the distro,unsloth/unsloth-rocm:latest(sha-1811677).rocminfoin a container, DXG onlygfx1201,AMD Radeon AI PRO R970086f691e9c7LOG(FATAL), abort86f691e9c7is_available() True7182546repo.amd.comgfx120X-all over DXGTrue, 31.7 GB, fp16 matmul finite86f691e9c7bash docker/run.sh --rocm python /workspace/smoke_test_rocm.py86f691e9c7/usr/lib/wsl/libhsa_init Failed,Failed to load libdxcore.so; with it,gfx1201aa86470e84docker run --device /dev/kfdon WSLef21f162f9desktop-linux)/dev/dxgnor/dev/kfdef21f162f9rocm-smi --showidin a container over DXGDriver not initialized (amdgpu not found in modules)782ead3c28librocprofiler-sdk.so, no abort782ead3c28run.sh's DXG flags are the same set the smoke run used; later commits changed only how it probes for the WSL lib dir and what it says when that is missing.
Not covered
ROCM_GFX=gfx1201build frombuild.sh: same index, same absence of rocprofiler, different layer order./dev/kfdpath ran only in the staged-device-tree tests, not on a Linux AMD host. Its branches are unchanged apart from theUNSLOTH_ROCM_DEV_PATH == kfdguard./dev/kfd, so it cannot see this path. The table above is the test report.