Nixpkgs version
Describe the bug
As of now, the rocprofiler package seems to be useless, as hsa-amd-aqlprofile-bin is not linked to the profiler. Therefore, every time one tries to run the profiler, it immediately exits. I consider this a bug, as the program thus becomes unusable.
I have undergone an effort to try to fix this issue, but to no avail:
When adding hsa-amd-aqlprofile-bin to the propagatedBuildInputs, removing optional-aql-in-cmake.patch, and patching the rocprofv2 script to point the ROCM_DIR to the correct location (containing a symlink-joined version of clr, hsa-amd-aqlprofile-bin, roctracer, etc), one instead receives the error aqlprofile API table load failed: HSA_STATUS_ERROR: A generic error has occurred.. This is despite libhsa-amd-aqlprofile64.so.1 being loaded in as a library, which I could deduce using ldd.
An strace reveals that there does not seem to be any problems loading the hsa so lib. However, librocprofv2_att.so does not seem to be loaded in (the program does not try to do so though).
This might be a possible regression in comparison to rocmPackages_5.rocprofiler, as this version had a patch which also put the ROCM_DIR variable under the caller's control.
Steps to reproduce
- Drop in a shell with rocprofiler
- Run
rocprofv2 --list-counters
- Observe that even this basic debug command does not work, as rocprofiler is not linked to
hsa-amd-aqlprofile-bin by default. The command will return /nix/store/282lwma79pp3f8fkdj70yzwqmf00kxxy-rocprofiler-6.3.3/libexec/rocprofiler/ctrl: symbol lookup error: /nix/store/282lwma79pp3f8fkdj70yzwqmf00kxxy-rocprofiler-6.3.3/lib/librocprofiler64.so.2: undefined symbol: hsa_ven_amd_aqlprofile_iterate_data
Expected behaviour
Running the command should list the counters, and one should be able to actually use the profiler.
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
- system:
"x86_64-linux"
- host os:
Linux 6.15.2, NixOS, 25.11 (Xantusia), 25.11pre814309.ee930f9755f5
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.28.3
- channels(root):
"home-manager, nixos"
- nixpkgs:
/nix/store/59ls65ppq5jhlxjgg180sjv2darsnhpc-nixos/nixos
Notify maintainers
@LunNova @GZGavinZhao @NixOS/rocm-maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Describe the bug
As of now, the rocprofiler package seems to be useless, as
hsa-amd-aqlprofile-binis not linked to the profiler. Therefore, every time one tries to run the profiler, it immediately exits. I consider this a bug, as the program thus becomes unusable.I have undergone an effort to try to fix this issue, but to no avail:
When adding
hsa-amd-aqlprofile-binto thepropagatedBuildInputs, removingoptional-aql-in-cmake.patch, and patching therocprofv2script to point theROCM_DIRto the correct location (containing a symlink-joined version ofclr,hsa-amd-aqlprofile-bin,roctracer, etc), one instead receives the erroraqlprofile API table load failed: HSA_STATUS_ERROR: A generic error has occurred.. This is despitelibhsa-amd-aqlprofile64.so.1being loaded in as a library, which I could deduce usingldd.An
stracereveals that there does not seem to be any problems loading the hsa so lib. However,librocprofv2_att.sodoes not seem to be loaded in (the program does not try to do so though).This might be a possible regression in comparison to
rocmPackages_5.rocprofiler, as this version had a patch which also put the ROCM_DIR variable under the caller's control.Steps to reproduce
rocprofv2 --list-countershsa-amd-aqlprofile-binby default. The command will return/nix/store/282lwma79pp3f8fkdj70yzwqmf00kxxy-rocprofiler-6.3.3/libexec/rocprofiler/ctrl: symbol lookup error: /nix/store/282lwma79pp3f8fkdj70yzwqmf00kxxy-rocprofiler-6.3.3/lib/librocprofiler64.so.2: undefined symbol: hsa_ven_amd_aqlprofile_iterate_dataExpected behaviour
Running the command should list the counters, and one should be able to actually use the profiler.
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"Linux 6.15.2, NixOS, 25.11 (Xantusia), 25.11pre814309.ee930f9755f5yesyesnix-env (Nix) 2.28.3"home-manager, nixos"/nix/store/59ls65ppq5jhlxjgg180sjv2darsnhpc-nixos/nixosNotify maintainers
@LunNova @GZGavinZhao @NixOS/rocm-maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.