Revert "rocmPackages.composable_kernel: compress output"

This commit is contained in:
Weijia Wang 2024-04-17 02:41:57 +02:00
parent 229626d4d0
commit 92a9b54db1
3 changed files with 2 additions and 1202 deletions

View File

@ -72,9 +72,7 @@ in stdenv.mkDerivation (finalAttrs: {
"info" # Avoid `attribute 'info' missing` when using with wrapCC
];
patches = [
./add-compression-to-clang-offload-bundler.patch
] ++ extraPatches;
patches = extraPatches;
src = fetchFromGitHub {
owner = "ROCm";

View File

@ -2,14 +2,13 @@
, callPackage
, rocmUpdateScript
, llvm
, makeWrapper
}:
callPackage ../base.nix rec {
inherit stdenv rocmUpdateScript;
targetName = "clang-unwrapped";
targetDir = "clang";
extraBuildInputs = [ llvm makeWrapper ];
extraBuildInputs = [ llvm ];
extraCMakeFlags = [
"-DCLANG_INCLUDE_DOCS=ON"
@ -42,12 +41,6 @@ callPackage ../base.nix rec {
extraPostInstall = ''
mv bin/clang-tblgen $out/bin
# add wrapper to compress embedded accelerator-specific code
# this makes the output of composable_kernel significantly smaller right now
# TODO: remove this once ROCm does it out of the box
mv $out/bin/clang-offload-bundler $out/bin/clang-offload-bundler-unwrapped
makeWrapper $out/bin/clang-offload-bundler-unwrapped $out/bin/clang-offload-bundler \
--add-flags '-compress'
'';
requiredSystemFeatures = [ "big-parallel" ];