Loading pkgs/development/rocm-modules/6/composable_kernel/default.nix +5 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ , clang-tools-extra , git , gtest , zstd , buildTests ? false , buildExamples ? false , gpuTargets ? [ ] # gpuTargets = [ "gfx803" "gfx900" "gfx1030" ... ] Loading Loading @@ -39,6 +40,7 @@ stdenv.mkDerivation (finalAttrs: { rocm-cmake clr clang-tools-extra zstd ]; buildInputs = [ openmp ]; Loading Loading @@ -66,7 +68,9 @@ stdenv.mkDerivation (finalAttrs: { '' ; postInstall = lib.optionalString buildTests '' postInstall = '' zstd --rm $out/lib/libdevice_operations.a '' + lib.optionalString buildTests '' mkdir -p $test/bin mv $out/bin/test_* $test/bin '' + lib.optionalString buildExamples '' Loading pkgs/development/rocm-modules/6/composable_kernel/unpack.nix 0 → 100644 +16 −0 Original line number Diff line number Diff line { runCommandLocal, composable_kernel_build, zstd }: let ck = composable_kernel_build; in runCommandLocal "unpack-${ck.name}" { nativeBuildInputs = [ zstd ]; meta = ck.meta; } '' mkdir -p $out cp -r --no-preserve=mode ${ck}/* $out zstd -dv --rm $out/lib/libdevice_operations.a.zst -o $out/lib/libdevice_operations.a substituteInPlace $out/lib/cmake/composable_kernel/*.cmake \ --replace "${ck}" "$out" '' pkgs/development/rocm-modules/6/default.nix +6 −4 Original line number Diff line number Diff line Loading @@ -240,11 +240,13 @@ in rec { It is still available for some time as part of rocmPackages_5. ''; # Added 2024-3-3; composable_kernel = callPackage ./composable_kernel { composable_kernel = callPackage ./composable_kernel/unpack.nix { composable_kernel_build = callPackage ./composable_kernel { inherit rocmUpdateScript rocm-cmake clr; inherit (llvm) openmp clang-tools-extra; stdenv = llvm.rocmClangStdenv; }; }; half = callPackage ./half { inherit rocmUpdateScript rocm-cmake; Loading Loading
pkgs/development/rocm-modules/6/composable_kernel/default.nix +5 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ , clang-tools-extra , git , gtest , zstd , buildTests ? false , buildExamples ? false , gpuTargets ? [ ] # gpuTargets = [ "gfx803" "gfx900" "gfx1030" ... ] Loading Loading @@ -39,6 +40,7 @@ stdenv.mkDerivation (finalAttrs: { rocm-cmake clr clang-tools-extra zstd ]; buildInputs = [ openmp ]; Loading Loading @@ -66,7 +68,9 @@ stdenv.mkDerivation (finalAttrs: { '' ; postInstall = lib.optionalString buildTests '' postInstall = '' zstd --rm $out/lib/libdevice_operations.a '' + lib.optionalString buildTests '' mkdir -p $test/bin mv $out/bin/test_* $test/bin '' + lib.optionalString buildExamples '' Loading
pkgs/development/rocm-modules/6/composable_kernel/unpack.nix 0 → 100644 +16 −0 Original line number Diff line number Diff line { runCommandLocal, composable_kernel_build, zstd }: let ck = composable_kernel_build; in runCommandLocal "unpack-${ck.name}" { nativeBuildInputs = [ zstd ]; meta = ck.meta; } '' mkdir -p $out cp -r --no-preserve=mode ${ck}/* $out zstd -dv --rm $out/lib/libdevice_operations.a.zst -o $out/lib/libdevice_operations.a substituteInPlace $out/lib/cmake/composable_kernel/*.cmake \ --replace "${ck}" "$out" ''
pkgs/development/rocm-modules/6/default.nix +6 −4 Original line number Diff line number Diff line Loading @@ -240,11 +240,13 @@ in rec { It is still available for some time as part of rocmPackages_5. ''; # Added 2024-3-3; composable_kernel = callPackage ./composable_kernel { composable_kernel = callPackage ./composable_kernel/unpack.nix { composable_kernel_build = callPackage ./composable_kernel { inherit rocmUpdateScript rocm-cmake clr; inherit (llvm) openmp clang-tools-extra; stdenv = llvm.rocmClangStdenv; }; }; half = callPackage ./half { inherit rocmUpdateScript rocm-cmake; Loading