Compare commits
2 Commits
59e36f6a7f
...
551335bf53
| Author | SHA1 | Date | |
|---|---|---|---|
|
551335bf53
|
|||
|
7bd3d205c9
|
@ -20,4 +20,7 @@ plot <- ggplot(data, aes(x = benchmark, y = faults, fill = resulttype)) +
|
||||
labs(x = "Benchmark", y = "Faults", fill = "Result Type") +
|
||||
theme_minimal()
|
||||
|
||||
ggsave(paste(experiment, "/single_result.svg", sep = ""), plot = plot)
|
||||
ggsave(
|
||||
paste(experiment, "/single_result.svg", sep = ""),
|
||||
plot = plot,
|
||||
)
|
||||
|
||||
@ -19,8 +19,14 @@ tibble::glimpse(data)
|
||||
|
||||
plot <- ggplot(data, aes(x = fault_address, y = faults)) +
|
||||
geom_point(aes(color = resulttype)) +
|
||||
scale_x_continuous(
|
||||
labels = function(x) sprintf("0x%X", as.integer(x))
|
||||
) +
|
||||
scale_y_log10() +
|
||||
labs(x = "Address", y = "Faults", color = "Type") +
|
||||
theme_minimal()
|
||||
|
||||
ggsave(paste(experiment, "/scatter.svg", sep = ""), plot = plot)
|
||||
ggsave(
|
||||
paste(experiment, "/scatter.svg", sep = ""),
|
||||
plot = plot,
|
||||
)
|
||||
|
||||
@ -323,8 +323,13 @@ rec {
|
||||
owner = "christoph";
|
||||
repo = "wamr";
|
||||
|
||||
rev = "cda2009deb85511089b04b0ac736ad4da2d07e58";
|
||||
# With mmap_space in .text.wamr_aot
|
||||
rev = "cda2008deb85511089b04b0ac736ad4da2d07e58";
|
||||
hash = "sha256-CN6xTiwzF4Jbrpf21TF5c/C03Xb3urwkibRuIXjoU/w=";
|
||||
|
||||
# Without mmap_space in .text.wamr_aot
|
||||
# rev = "4e7aed33fe53bf3ee4a3f2fe582c74816f850759";
|
||||
# hash = "sha256-/4BKwoFDRfkA+DmbWagxdtkCDAED5rxbz5e4xvjvVWU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [cmake];
|
||||
|
||||
@ -174,25 +174,18 @@ my %handlers = (
|
||||
}
|
||||
|
||||
# Insert charts
|
||||
my $attach_image = sub {
|
||||
my ($name) = @_;
|
||||
|
||||
return unless ( -f "$local_archive_dir/$experiment/$name.svg" );
|
||||
|
||||
system(
|
||||
'cp', '-i',
|
||||
"$local_archive_dir/$experiment/$name.svg",
|
||||
"$local_obsidian_attach/${experiment}_$name.svg"
|
||||
);
|
||||
|
||||
system( 'obsidian', 'append', "file=zettel/$experiment",
|
||||
"content=![[${experiment}_$name.svg]]\n" );
|
||||
};
|
||||
|
||||
system(
|
||||
'obsidian', 'append',
|
||||
"file=zettel/$experiment", "content=## Charts\n\n"
|
||||
);
|
||||
|
||||
my $attach_image = sub {
|
||||
my ($name) = @_;
|
||||
|
||||
system( 'obsidian', 'append', "file=zettel/$experiment",
|
||||
"content=\n"
|
||||
);
|
||||
};
|
||||
$attach_image->("single_result");
|
||||
$attach_image->("scatter");
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ build module="__help" target="fail" mode="aot":
|
||||
|
||||
just clean {{ module }}
|
||||
just create-build-dir {{ module }}
|
||||
just copy-c-module {{ module }}
|
||||
just copy-auxiliary {{ module }}
|
||||
|
||||
if [ "{{ mode }}" = "aot" ]; then
|
||||
just build-wasm-module {{ module }}
|
||||
|
||||
@ -269,3 +269,5 @@ for my $experiment (@experiments) {
|
||||
inject($experiment);
|
||||
results($experiment);
|
||||
}
|
||||
|
||||
Util::notify("Finished all experiments");
|
||||
|
||||
@ -53,8 +53,7 @@ CROSS_WAMRCFLAGS := "\
|
||||
--target=i386 \
|
||||
--cpu=generic \
|
||||
--opt-level=0 \
|
||||
--enable-indirect-mode \
|
||||
--disable-llvm-intrinsics \
|
||||
--xip \
|
||||
"
|
||||
LINUX_WAMRCFLAGS := "\
|
||||
--target=i386 \
|
||||
@ -131,7 +130,14 @@ build-c-module module target="fail":
|
||||
fi
|
||||
|
||||
[private]
|
||||
copy-c-module module:
|
||||
copy-auxiliary module:
|
||||
cp flake.nix {{ BUILD_DIR }}-{{ module }}/flake.nix
|
||||
cp scripts/runner.pl {{ BUILD_DIR }}-{{ module }}/runner.pl
|
||||
cp scripts/wasm.just {{ BUILD_DIR }}-{{ module }}/wasm.just
|
||||
cp targets/lib.h {{ BUILD_DIR }}-{{ module }}/lib.h
|
||||
cp targets/linker.ld {{ BUILD_DIR }}-{{ module }}/linker.ld
|
||||
cp targets/startup.s {{ BUILD_DIR }}-{{ module }}/startup.s
|
||||
cp targets/syscalls.c {{ BUILD_DIR }}-{{ module }}/syscalls.c
|
||||
cp targets/wasm-module/{{ module }}.cpp {{ BUILD_DIR }}-{{ module }}/wasm-module.cpp
|
||||
|
||||
# =================================================================================================================== #
|
||||
|
||||
Reference in New Issue
Block a user