lulesh: add gitTable

This commit is contained in:
Rodrigo Arias 2021-04-20 18:42:19 +02:00
parent 2cc0c85635
commit 9fc2a2025c
2 changed files with 41 additions and 23 deletions

View File

@ -3,38 +3,44 @@
, impi , impi
, mcxx , mcxx
, icc , icc
, gitBranch ? "garlic/tampi+isend+oss+taskfor"
, tampi ? null , tampi ? null
, gitBranch ? "garlic/mpi+isend+seq"
, gitCommit ? null
, garlicTools
}: }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { let
name = "lulesh"; gitSource = garlicTools.fetchGarlicApp {
appName = "lulesh";
src = builtins.fetchGit { inherit gitCommit gitBranch;
url = "ssh://git@bscpm03.bsc.es/garlic/apps/lulesh.git"; gitTable = import ./git-table.nix;
ref = gitBranch;
}; };
in
stdenv.mkDerivation rec {
name = "lulesh";
dontConfigure = true; inherit (gitSource) src gitBranch gitCommit;
preBuild = optionalString (tampi != null) "export TAMPI_HOME=${tampi}"; dontConfigure = true;
#TODO: Allow multiple MPI implementations and compilers preBuild = optionalString (tampi != null) "export TAMPI_HOME=${tampi}";
buildInputs = [
impi
icc
mcxx
];
enableParallelBuilding = true; #TODO: Allow multiple MPI implementations and compilers
buildInputs = [
impi
icc
mcxx
];
#TODO: Can we build an executable named "lulesh" in all branches? enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin
find . -name 'lulesh*' -type f -executable -exec cp \{\} $out/bin/${name} \;
'';
programPath = "/bin/${name}";
} #TODO: Can we build an executable named "lulesh" in all branches?
installPhase = ''
mkdir -p $out/bin
find . -name 'lulesh*' -type f -executable -exec cp \{\} $out/bin/${name} \;
'';
programPath = "/bin/${name}";
}

View File

@ -0,0 +1,12 @@
{
# Auto-generated with garlic-git-table on 2021-04-20 for repo:
# ssh://git@bscpm03.bsc.es/garlic/apps/lulesh.git
"garlic/mpi+isend+omp+fork" = "6cc85c55cb4840d6cde12bb285f5ab1ae7878618";
"garlic/mpi+isend+oss+task" = "0a9e2cd1d64ab4fcf1860ace02866278ad289637";
"garlic/mpi+isend+seq" = "9df5475c7dd2b345559fae5bd07ceea38f2e7b91";
"garlic/tampi+isend+oss+task" = "28ce0cd69f9b4e65eff8141ec455d5f60e9b98b3";
"garlic/tampi+isend+oss+taskfor" = "928f315ea426585a32231d950da651399e48d762";
"garlic/tampi+isend+oss+taskloop" = "7957c1a2c84ae80edddcec9eafe7efdeefa68d58";
"garlic/tampi+isend+oss+taskloopfor" = "7efa0535130a6726f5a46669cf171412d21adc9b";
}