Add garlic group

This commit is contained in:
Rodrigo Arias 2020-07-24 13:24:30 +02:00
parent ac1523d946
commit bad6f3c761
4 changed files with 42 additions and 5 deletions

14
bsc/garlic/default.nix Normal file
View File

@ -0,0 +1,14 @@
{
pkgs
, bsc
}:
let
callPackage = pkgs.lib.callPackageWith (pkgs // bsc // garlic);
callPackages = pkgs.lib.callPackagesWith (pkgs // bsc // garlic);
garlic = rec {
mpptest = callPackage ./mpptest/default.nix { };
ppong = callPackage ./ppong/default.nix { };
};
in
garlic

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation {
name = "mpptest"; name = "mpptest";
src = fetchurl { src = fetchurl {
url = "ftp://ftp.mcs.anl.gov/pub/mpi/tools/perftest.tar.gz"; url = "http://ftp.mcs.anl.gov/pub/mpi/tools/perftest.tar.gz";
sha256 = "11i22lq3pch3pvmhnbsgxzd8ap4yvpvlhy2f7k8x3krdwjhl0jvl"; sha256 = "11i22lq3pch3pvmhnbsgxzd8ap4yvpvlhy2f7k8x3krdwjhl0jvl";
}; };

View File

@ -0,0 +1,24 @@
{
stdenv
, mpi
, fetchurl
}:
stdenv.mkDerivation {
name = "ppong";
src = fetchurl {
url = "http://www.csl.mtu.edu/cs4331/common/PPong.c";
sha256 = "0d1w72gq9627448cb7ykknhgp2wszwd117dlbalbrpf7d0la8yc0";
};
dontUnpack = true;
buildPhase = ''
pwd
ls -la
mpicc PPong.c -o ppong
'';
buildInputs = [ mpi ];
}

View File

@ -159,12 +159,11 @@ let
fwi = callPackage ./bsc/apps/fwi/default.nix { fwi = callPackage ./bsc/apps/fwi/default.nix {
}; };
garlic = pkgs.buildEnv { garlic = callPackage ./bsc/garlic/default.nix {
name = "garlic"; pkgs = pkgs;
paths = [ nbody gauss-seidel saiph creams lulesh hpcg hpccg fwi ]; bsc = self.bsc;
}; };
# Patched nix for deep cluster # Patched nix for deep cluster
inherit (callPackage ./bsc/nix/default.nix { inherit (callPackage ./bsc/nix/default.nix {
storeDir = "/nix/store"; storeDir = "/nix/store";