mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Hardware/AMD/ROCm] fix tensile
This commit is contained in:
parent
8e69a7d488
commit
7da398fbff
1 changed files with 11 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ in {
|
|||
|
||||
nixpkgs.config.rocmSupport = true;
|
||||
|
||||
nixpkgs.overlays = [(final: prev: {
|
||||
nixpkgs.overlays = mkBefore [(final: prev: {
|
||||
# Overlay Blender to use the HIP build if we have a compatible AMD GPU
|
||||
blender = final.blender-hip;
|
||||
blender-cpu = prev.blender;
|
||||
|
|
@ -106,6 +106,8 @@ in {
|
|||
];
|
||||
});
|
||||
|
||||
rocblas = prev.hello;
|
||||
|
||||
rocmlir-rock = rocmlir.override {
|
||||
buildRockCompiler = true;
|
||||
};
|
||||
|
|
@ -113,6 +115,14 @@ in {
|
|||
miopen = prev.rocmPackages.miopen.override { rocmlir = rocmlir-rock; };
|
||||
|
||||
migraphx = prev.rocmPackages.migraphx.override { rocmlir = rocmlir-rock; };
|
||||
|
||||
tensile = prev.rocmPackages.tensile.overrideAttrs (old: {
|
||||
# TODO: remove this workaround once https://github.com/NixOS/nixpkgs/pull/323869
|
||||
# does not cause issues anymore, or at least replace it with a better orkaround
|
||||
setupHook = writeText "setup-hook" ''
|
||||
export TENSILE_ROCM_ASSEMBLER_PATH="${stdenv.cc.cc}/bin/clang++";
|
||||
'';
|
||||
});
|
||||
};
|
||||
})];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue