lulesh: follow garlic git branches

This commit is contained in:
Rodrigo Arias 2021-01-28 14:57:51 +01:00
parent 0bc81c8943
commit 0f62151dcf

View File

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