rocmPackages.hiprt: init at 2.5.a21e075.3#411736
Conversation
45d31e8 to
7930a85
Compare
I don't have a desktop system with AMD to test right now, my cards are in headless boxes for ML. Maybe the reporter of #407646 can help test? |
7930a85 to
acfbb0a
Compare
Blender-hip is still broken (#410748) for me so I can't check it with that. So I thought maybe I should try running some of the hiprt examples with this: https://github.com/GPUOpen-LibrariesAndSDKs/HIPRTSDK HIPRT build puts the library files in $out/bin. I moved them to $out/lib in postInstall. |
|
I'm seeing issues with the compiled kernels, too, have not tried the examples yet, but it seems like a lot of kernels aren't compiled (the filesizes produced of the hipfb files are way too small). |
|
if you add the /lib subdirectory of the rocmPackages.clr derivation to LD_LIBRARY_PATH, the examples seem to work. Still working to see what the deal is with the sizes of those hipfb and bc files, how big are they for you? |
Thanks for pointing out the file names. The cmake install didn't copy the bc file. It was next to some python scripts. copying it to the build output fixed the runtime issues that I had. File sizes are around 1.1MBs with
Adding clr/lib to library path solved that issue. 👍 After adding the hiprt include directory: Now I just realized that bc file isn't there. 😅 I ran the first 5 examples and the images are the same as the demo one, so I think it's working now. |
|
I think our bitcode files are much smaller than for example arch and fedora because we're using some kind of newer offload bundler compression in our tree. Not sure. I got all examples working too. I just passed -DNO_ENCRYPT=ON to cmake to avoid rebuilding that tool (fedora also does this) needed for encryption, and to avoid the gcc nativeBuildInput. I also added a gpuTargets parameter, and a postPatch section that patches the python scripts to honor that setting. I can submit PR for that separately once this is merged though |
fbd469d to
739400a
Compare
|
I think it's probably better not to hardcode that filename in the install command in postInstall, since if we move to rocm 6.4.0, then this will start failing without anything having changed with hiprt itself. Also I think you should add a command to symlink libhiprt0200564.so as libhiprt64.so (probably also taking care to futureproof it so that renaming step doesn't need to be updated everytime they end up changing whatever "02005" signifies in that filename. Also I think you should put rocmPackages.clr in buildInputs, then you can remove the HIP_PATH cmake flag, since it'll pick it up automatically from the environment variable that rocmPackages.clr exports |
Sure 👍
I removed the HIP_PATH while keeping |
739400a to
a9d9194
Compare
|
Hi @justinkb |
|
Yeah, you need to patch hiprtew.cc so it can find the library. Once hiprt
is in tree, I'll submit a PR for that
…On Sat, Jun 7, 2025, 7:12 PM Mk Safavi ***@***.***> wrote:
*mksafavi* left a comment (NixOS/nixpkgs#411736)
<#411736 (comment)>
Hi @justinkb <https://github.com/justinkb>
Did you try blender with hip-rt? I built it with hip-rt but it crashes
when you switch the render engine.
but I suppose we should discuss this in a separate PR?
—
Reply to this email directly, view it on GitHub
<#411736 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABVHKBSEYC2VKALDFU6QOT3CMMPRAVCNFSM6AAAAAB6C5ANAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJSG43TCNJVGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Hi. |
|
I think more properly clr should be listed in buildInputs as opposed to nativeBuildInputs, if I look at how other similar derivations specify their dependencies |
I agree, it should be a runtime dependency :) |
a9d9194 to
6efc5ad
Compare
|
|
Hi. |
|
Approved, I don't have merge perms. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
You can apply to be a commiter or ping one you know/have interacted with. |
Things done
There's a package request (#407646) for adding hip-rt which is needed in blender-hip.
So far I got it to compile but I don't know how to test it.
Building with unittests fail btw, but I didn't examine it further.
I don't really know much about rocm. So if anyone from @NixOS/rocm-maintainers wants to take over let me know.
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.