illwieckz wrote: The `/usr/include/hsa/hsa.h` file is provided by the stock Ubuntu `libhsa-runtime-dev` package. The `/opt/rocm-6.1.2/include/hsa/hsa.h` file is provided by the AMD `hsa-rocr-dev` package. The AMD `rocm-hip-runtime` package depends on both `hsa-rocr-dev` and `libhsa-runtime-dev`…
``` $ debtree rocm-hip-runtime 2>/dev/null | grep -E -- '-> "hip-runtime-amd|-> "hsa-rocr-dev|-> "hipcc|-> "libamdhip64-dev|-> "libhsa-runtime-dev' "rocm-hip-runtime" -> "hip-runtime-amd" [color=blue,label="(= 6.1.40093.60102-119~22.04)"]; "hip-runtime-amd" -> "hsa-rocr-dev" [color=blue,label="(>= 1.3)"]; "hip-runtime-amd" -> "hipcc" [color=blue]; "hipcc" -> "libamdhip64-dev" [color=blue]; "libamdhip64-dev" -> "libhsa-runtime-dev" [color=blue]; ``` ``` $ apt-get install --reinstall rocm-hip-runtime hip-runtime-amd hsa-rocr-dev hipcc libhsa-runtime-dev Get:1 http://archive.ubuntu.com/ubuntu mantic/universe amd64 hipcc amd64 5.2.3-12 [25,1 kB] Get:2 http://archive.ubuntu.com/ubuntu mantic/universe amd64 libhsa-runtime-dev amd64 5.2.3-5 [73,3 kB] Get:3 https://repo.radeon.com/rocm/apt/6.1.2 jammy/main amd64 hip-runtime-amd amd64 6.1.40093.60102-119~22.04 [27,1 MB] Get:4 https://repo.radeon.com/rocm/apt/6.1.2 jammy/main amd64 hsa-rocr-dev amd64 1.13.0.60102-119~22.04 [102 kB] Get:5 https://repo.radeon.com/rocm/apt/6.1.2 jammy/main amd64 rocm-hip-runtime amd64 6.1.2.60102-119~22.04 [2 042 B] ``` So basically: ``` ─ rocm-hip-runtime 6.1.2.60102-119~22.04 (AMD repository) └ hip-runtime-amd 6.1.40093.60102-119~22.04 (AMD repository) ├ hsa-rocr-dev 1.13.0.60102-119~22.04 (AMD repository) │ └ /opt/rocm-6.1.2/include/hsa/hsa.h └ hipcc 1.0.0.60102-119~22.04 (Ubuntu repository) └ libhsa-runtime-dev 5.0.0-1 (Ubuntu repository) └ /usr/include/hsa/hsa.h ``` This is definitely an AMD packaging issue. https://github.com/llvm/llvm-project/pull/95484 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits