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";
|
||||
|
||||
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";
|
||||
};
|
||||
|
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 {
|
||||
};
|
||||
|
||||
garlic = pkgs.buildEnv {
|
||||
name = "garlic";
|
||||
paths = [ nbody gauss-seidel saiph creams lulesh hpcg hpccg fwi ];
|
||||
garlic = callPackage ./bsc/garlic/default.nix {
|
||||
pkgs = pkgs;
|
||||
bsc = self.bsc;
|
||||
};
|
||||
|
||||
|
||||
# Patched nix for deep cluster
|
||||
inherit (callPackage ./bsc/nix/default.nix {
|
||||
storeDir = "/nix/store";
|
||||
|
Loading…
Reference in New Issue
Block a user