Add garlic group
This commit is contained in:
parent
ac1523d946
commit
bad6f3c761
14
bsc/garlic/default.nix
Normal file
14
bsc/garlic/default.nix
Normal 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
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
24
bsc/garlic/ppong/default.nix
Normal file
24
bsc/garlic/ppong/default.nix
Normal 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 ];
|
||||||
|
}
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user