Add bench6 to run benchmark tests

This commit is contained in:
Rodrigo Arias 2025-04-11 14:35:37 +02:00
parent 81c137a65e
commit 1f71bc8e90
2 changed files with 23 additions and 1 deletions

View File

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support OpenMP label and task ID views. - Add support OpenMP label and task ID views.
- Add support for nOS-V non-blocking scheduler server events (`VSN` and `VSn`). - Add support for nOS-V non-blocking scheduler server events (`VSN` and `VSn`).
- Add OpenMP simple breakdown view. - Add OpenMP simple breakdown view.
- Add bench6 package to run full mini-apps for tests.
## [1.11.0] - 2024-11-08 ## [1.11.0] - 2024-11-08

View File

@ -32,6 +32,25 @@
gitBranch = "master"; gitBranch = "master";
gitCommit = "403fcf764e908b793cb8015d41dec119a2374a69"; gitCommit = "403fcf764e908b793cb8015d41dec119a2374a69";
}; };
bench6 = prev.bench6.overrideAttrs (old: rec {
src = builtins.fetchGit {
url = "ssh://git@bscpm04.bsc.es/rarias/bench6.git";
ref = "master";
rev = "62f5970779b315fcb8939280727716748a3f3ca5";
};
version = src.shortRev;
cmakeFlags = [ "-DCMAKE_C_COMPILER=clang" "-DCMAKE_CXX_COMPILER=clang++" ];
env = with final; {
NANOS6_HOME = nanos6;
NODES_HOME = nodes;
NOSV_HOME = nosv;
};
buildInputs = with final; [ bigotes cmake clangOmpss2 openmp openmpv
nanos6 nodes nosv mpi tampi tagaspi gpi-2 openblas openblas.dev ovni
];
hardeningDisable = [ "all" ];
dontStrip = true;
});
# Use a fixed commit for libovni # Use a fixed commit for libovni
ovniFixed = prev.ovni.override { ovniFixed = prev.ovni.override {
@ -116,7 +135,9 @@
# We need to be able to exit the chroot to run Nanos6 tests, as they # We need to be able to exit the chroot to run Nanos6 tests, as they
# require access to /sys for hwloc # require access to /sys for hwloc
__noChroot = true; __noChroot = true;
buildInputs = old.buildInputs ++ (with pkgs; [ pkg-config nosv nanos6 nodes openmpv ]); buildInputs = old.buildInputs ++ (with pkgs; [
pkg-config nosv nanos6 nodes openmpv bench6
]);
cmakeFlags = old.cmakeFlags ++ [ "-DENABLE_ALL_TESTS=ON" ]; cmakeFlags = old.cmakeFlags ++ [ "-DENABLE_ALL_TESTS=ON" ];
preConfigure = old.preConfigure or "" + '' preConfigure = old.preConfigure or "" + ''
export NOSV_HOME="${pkgs.nosv}" export NOSV_HOME="${pkgs.nosv}"