diff --git a/bsc/bench6/default.nix b/bsc/bench6/default.nix new file mode 100644 index 0000000..a0e09c0 --- /dev/null +++ b/bsc/bench6/default.nix @@ -0,0 +1,25 @@ +{ + stdenv +, clangOmpss2 +, gitBranch ? "master" +, gitURL ? "ssh://git@bscpm03.bsc.es/rarias/bench6.git" +}: + +stdenv.mkDerivation rec { + pname = "bench6"; + version = "${src.shortRev}"; + + src = builtins.fetchGit { + url = gitURL; + ref = gitBranch; + }; + + buildInputs = [ clangOmpss2 ]; + + preInstall = '' + export DESTDIR=$out + ''; + + hardeningDisable = [ "all" ]; + dontStrip = true; +} diff --git a/overlay.nix b/overlay.nix index 9ac4cdb..2ba4d06 100644 --- a/overlay.nix +++ b/overlay.nix @@ -302,6 +302,7 @@ let dummy = callPackage ./bsc/dummy/default.nix { }; mpptest = callPackage ./bsc/mpptest/default.nix { }; cpuid = callPackage ./bsc/cpuid/default.nix { }; + bench6 = callPackage ./bsc/bench6/default.nix { }; # ================================================================= # Garlic benchmark