nbody: add gitTable

This commit is contained in:
Rodrigo Arias 2021-04-20 17:47:22 +02:00
parent 1402111e40
commit a359cc9d32
3 changed files with 50 additions and 34 deletions

View File

@ -7,9 +7,7 @@
}:
{
nbody = callPackage ./nbody/default.nix {
gitBranch = "garlic/seq";
};
nbody = callPackage ./nbody/default.nix { };
saiph = callPackage ./saiph/default.nix {
cc = bsc.clangOmpss2;

View File

@ -5,23 +5,28 @@
, tampi ? null
, mcxx ? null
, cflags ? null
, gitBranch
, gitURL ? "ssh://git@bscpm03.bsc.es/garlic/apps/nbody.git"
, gitBranch ? "garlic/seq"
, gitCommit ? null
, blocksize ? 2048
, garlicTools
}:
assert !(tampi != null && mcxx == null);
with stdenv.lib;
let
gitSource = garlicTools.fetchGarlicApp {
appName = "nbody";
inherit gitCommit gitBranch;
gitTable = import ./git-table.nix;
};
in
stdenv.mkDerivation rec {
name = "nbody";
#src = ~/nbody;
inherit (gitSource) src gitBranch gitCommit;
src = builtins.fetchGit {
url = "${gitURL}";
ref = "${gitBranch}";
};
programPath = "/bin/nbody";
buildInputs = [

View File

@ -0,0 +1,13 @@
{
# Auto-generated with garlic-git-table on 2021-04-20 for repo:
# ssh://git@bscpm03.bsc.es/garlic/apps/nbody.git
"garlic/mpi+send+oss+task" = "20aa856baa3268d99262588807911ad0b3318d09";
"garlic/mpi+send+seq" = "3be64af0f949db5fd60fcd0334cf2cd8c9fa25c3";
"garlic/omp+fork" = "9c869272df7c775f467a2220211a414e33321c00";
"garlic/oss+task" = "13ab26fbad8662a1052cc94410386080bbf6a2ba";
"garlic/seq" = "9dfea29189d14477bd75e6f741f0518e7e4e5e72";
"garlic/seq+BLOCK" = "99408705628b374df4308dcf1cdbe2d21d1451c2";
"garlic/tampi+isend+oss+task" = "653d26e4a0913d36ea18d4e72e65a04838bb138a";
"garlic/tampi+send+oss+task" = "b1440ebc5f79165e5dfaa6a4ce7916eda410ec9a";
}