forked from rarias/bscpkgs
Move apps into garlic/apps
This commit is contained in:
@@ -59,7 +59,7 @@ let
|
||||
bsc = super.bsc // { mpi = conf.mpi; };
|
||||
});
|
||||
in
|
||||
customPkgs.garlic.nbody.override {
|
||||
customPkgs.apps.nbody.override {
|
||||
inherit cc blocksize mpi gitBranch;
|
||||
};
|
||||
|
||||
@@ -71,5 +71,4 @@ let
|
||||
|
||||
in
|
||||
|
||||
elemAt units 0
|
||||
#buildExperiment units
|
||||
stdexp.buildExperiment units
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
mn4 = {
|
||||
config = {
|
||||
name = "mn4";
|
||||
sshHosts = [ "mn1" "mn2" "mn3" ];
|
||||
nixPrefix = "/gpfs/projects/bsc15/nix";
|
||||
cachelineBytes = 64;
|
||||
march = "skylake-avx512";
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{ lib }:
|
||||
|
||||
let inherit (lib) optional; in
|
||||
|
||||
mkDerivation:
|
||||
|
||||
args:
|
||||
|
||||
let
|
||||
args_ = {
|
||||
|
||||
enableParallelBuilding = args.enableParallelBuilding or true;
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
};
|
||||
in
|
||||
|
||||
mkDerivation (args // args_)
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
stdenv
|
||||
, particles
|
||||
, timestamps
|
||||
, program
|
||||
, config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit program;
|
||||
|
||||
passthru = {
|
||||
inherit config;
|
||||
};
|
||||
|
||||
name = "${program.name}-argv";
|
||||
preferLocalBuild = true;
|
||||
phases = [ "installPhase" ];
|
||||
dontPatchShebangs = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/run <<EOF
|
||||
#!/bin/sh
|
||||
exec ${program}/bin/run -p ${toString config.particles} -t ${toString config.timesteps}
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/run
|
||||
'';
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
}:
|
||||
|
||||
{
|
||||
units:
|
||||
}
|
||||
units
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{
|
||||
nextStage
|
||||
, nixPrefix
|
||||
, clusterName
|
||||
, clusterName ? "mn4"
|
||||
}:
|
||||
|
||||
with garlicTools;
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
{
|
||||
stdenv
|
||||
, nixtools
|
||||
, garlicTools
|
||||
}:
|
||||
|
||||
{
|
||||
program
|
||||
nextStage
|
||||
, nixPrefix
|
||||
|
||||
# FIXME: These two should be specified in the configuration of the machine
|
||||
, sshHost ? "mn"
|
||||
, targetCluster ? "mn4"
|
||||
, stage
|
||||
}:
|
||||
|
||||
let
|
||||
program = garlicTools.stageProgram nextStage;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "trebuchet";
|
||||
phases = [ "installPhase" ];
|
||||
@@ -25,7 +30,7 @@ stdenv.mkDerivation {
|
||||
# to see what is being executed.
|
||||
|
||||
# $out
|
||||
${stage.desc}
|
||||
${nextStage.desc}
|
||||
|
||||
nixtools=${nixPrefix}${nixtools}/bin
|
||||
runexp=\$nixtools/${targetCluster}/runexp
|
||||
|
||||
@@ -15,11 +15,11 @@ in
|
||||
rec {
|
||||
/* Takes a list of units and builds an experiment, after executing the
|
||||
trebuchet and the isolate stages. Returns the trebuchet stage. */
|
||||
buildExperiment = {units, conf, ...}: stage.trebuchet {
|
||||
buildExperiment = units: stages.trebuchet {
|
||||
inherit (machineConf) nixPrefix;
|
||||
nextStage = stage.isolate {
|
||||
nextStage = stages.isolate {
|
||||
inherit (machineConf) nixPrefix;
|
||||
nextStage = stage.experiment {
|
||||
nextStage = stages.experiment {
|
||||
inherit units;
|
||||
};
|
||||
};
|
||||
@@ -73,7 +73,7 @@ rec {
|
||||
];
|
||||
|
||||
# FIXME: Remove this hack and allow custom nixpkgs
|
||||
bscOverlay = import ../../overlay.nix;
|
||||
bscOverlay = import ../overlay.nix;
|
||||
nixpkgs = import <nixpkgs>;
|
||||
genPkgs = newOverlay: nixpkgs {
|
||||
overlays = [
|
||||
Reference in New Issue
Block a user