Repository navigation
Conversation
|
Thanks @ElderOrb, this is a tidy port, and the device tests on gfx1151 are what we'd want for a new platform. Two |
|
Both points are in, at e90d3ce. |
|
Thanks @ElderOrb, both are in, and saying plainly that Linux HIP wasn't run on this head is what we wanted. Main has moved under |
e90d3ce to
e68832b
Compare
|
Rebased onto current main, head |
|
I found a Linux host: WSL2 Ubuntu on x86_64, Zig 0.17.0, no GPU. On |
|
Thanks @ElderOrb, a clean rebase with the HIP host checks passing on the new base is all that was left. It is in the landing queue now. |
|
/atc exchange 26e305efc91a1ed700a29c477885bdb1008555626cae6896abb3e76ba78fa347 |
|
/atc exchange d499a81e400da1ba7490e9ded9d7a83d4bacb871cca3abe8e7271b4b0bc9f0f3 |
|
Thanks @ElderOrb. This was queued before the 1.2.3 cut, and main has moved since. Two small things before it lands:
Please paste the HIP host checks on the new base, as last time. |
Windows HIP: prefer `hipcc.exe`, run `hipcc.bat` through `cmd /c call`, declare the build options for every host, load `amdhip64*.dll`, take the admission budget from the driver, use the Windows optional-library names (cuBLAS looked for `libcublas.so.13`), route HIP timing through `platform.c`, keep the host tests compiling, and run the cooperative grid plain where the driver reports no support.
e68832b to
6372216
Compare
|
Rebased onto current main ( HIP host checks on the new base:
The gfx1151 device run ( |
## What this changes
HIP builds, loads its runtime and launches its kernels on Windows, as it already did on Linux:
hipcc.exeis preferred andhipcc.batruns throughcmd /c call(cmd ate the quotes of a path with spaces), the build options are declared on every host, the runtime is loaded by its Windows names, the admission budget comes from the driver, the optional libraries use their Windows names (cuBLAS had been looking forlibcublas.so.13), HIP timing goes throughplatform.c, and the cooperative grid test runs plain where the driver reports no cooperative launch support (ROCm/hip#3640). The loader now continues past a missing library only, so a runtime that loads but failshipInitreports that error, and the newTENSORFOLD_HIPoverride is documented indocs/WINDOWS.md.docs/WINDOWS.mdalso gains the HIP build and run notes; it said HIP was not built on Windows.atc overlap --json: 55 overlaps against main. The only merge conflict isCHANGELOG.md(every open pull request adds a bullet there); this branch is rebased on current main and keeps both sides' bullets.zig/build/hip.zigis shared with Clef-Flash: joint-schema decisions on /v1/systemone (HIP) #2048, and a localgit merge --no-commitof that head auto-merges the file, so the two changes touch different regions.atcreportedcomplete: false(pullFilesUnavailable,timeLimit).Checks on this head
fa4ea099f; thehip.zighunk now sits beside the newclefExeline, and the CHANGELOG bullet moved under Unreleased as (hip: build and load the runtime on Windows #2178))python3 tools/zig/lean_check.py: 425 findings on the base (upstream/main), 425 on this head, 0 new.zig build test -Dhip=true- 525/531 build steps, 0 test failures; the four failing steps aretest-check-release-pathscases that spawnsh, which this Windows host lacks (CI runs that step on ubuntu and macos only).zig build test-golden- 319/331 equal to the goldens, 0 unexpected differences.zig build fuzz-cortheon- pass.zig build hip-host-test -Dhip=true- pass.zig build check-native-hip-host -Dhip=true- pass (the real HIP server with inert kernels).zig fmt --check build.zig zig- clean.hipcc:zig build native-hip -Dhip=true -Dhip-arch=gfx1151- 19/19 steps, all 12.hsacogroups;zig build hip-gpu-test -Dhip=true -Dhip-arch=gfx1151- 38/38 on the device;tensorfold-native.exe capabilities --json-"chip": "rdna3","backends": ["hip"], rocBLAS and MIOpen found.zig build hip-host-test -Dhip=true- pass (the shared lines this change touches),zig build check-native-hip-host -Dhip=true- pass,zig build test -Dhip=true- pass with no failures, andzig build test-server-security test-pull-security- 24/24.zig build test-pull-securitydoes not compile on Windows (zig/src/cli/pull_test.zig:39,std.posixbind); that file is unchanged here and the same command passes on Linux, so the failure is the platform's and predates this change.check-release-pathsneedssh.Receipt
hipcc. Host checks: the same Windows machine, and Linux x86_64 in WSL2 Ubuntu with no GPU. Compile-only checks also passed on Windows x86_64 with TheRock gfx1151 10.1.0 and with HIP SDK 7.1, whosehipcc.exeandhipcc.batboth resolve.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: n/a - no checkpoint loaded.tools/bench_openai.py: n/a - no checkpoint.Checklist
optional_libraries' platform names.