Skip to content

Commit

Permalink
[nix] replace streamLayeredImage to buildImage
Browse files Browse the repository at this point in the history
Proot have too many bugs to be fixed, it is better to use qemu to build
the docker image.

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed May 27, 2024
1 parent afa2fd3 commit fe88daf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nix/t1/release/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@
let
extension = lib.head elaborateConfig.parameter.extensions;
isFp = lib.hasInfix "f" extension;

# dontFixup is set to true by default for debugging. However it will bring LLVM runtime and clang into the final images.
# For docker release, test ELF is for demo usage only, so I don't want those implicit huge dependencies get into the container.
stripCase = case: case.overrideAttrs {
dontFixup = false;
};
in

lib.makeScope newScope (scope: rec {
inherit elaborateConfigJson configName;

testCases = with cases; [
testCases = map stripCase (with cases; [
intrinsic.matmul
] ++ lib.optionals isFp [
intrinsic.softmax
intrinsic.linear_normalization
];
]);

emulator-wrapped = runCommand "ip-emulator"
{
Expand Down

0 comments on commit fe88daf

Please sign in to comment.