rocmPackages.hipcc: don't depend on rocm-merged-llvm

This commit is contained in:
Luna Nova
2025-09-30 07:55:18 -07:00
parent d481667c84
commit 645a298fb3
2 changed files with 12 additions and 9 deletions
+1 -4
View File
@@ -80,10 +80,7 @@ let
hip-common = self.callPackage ./hip-common { };
hipcc = self.callPackage ./hipcc {
stdenv = origStdenv;
inherit (llvm) rocm-merged-llvm;
};
hipcc = self.callPackage ./hipcc { stdenv = origStdenv; };
# Replaces hip, opencl-runtime, and rocclr
clr = self.callPackage ./clr { };
@@ -1,7 +1,7 @@
{
lib,
stdenv,
rocm-merged-llvm,
llvm,
cmake,
lsb-release,
}:
@@ -9,13 +9,19 @@
stdenv.mkDerivation (finalAttrs: {
pname = "hipcc";
# In-tree with ROCm LLVM
inherit (rocm-merged-llvm) version;
src = rocm-merged-llvm.llvm-src;
inherit (llvm.llvm) version;
src = llvm.llvm.monorepoSrc;
sourceRoot = "${finalAttrs.src.name}/amd/hipcc";
strictDeps = true;
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
llvm.rocm-toolchain
cmake
];
buildInputs = [ rocm-merged-llvm ];
buildInputs = [
llvm.clang-unwrapped
];
patches = [
# https://github.com/ROCm/llvm-project/pull/183