lulesh: follow garlic git branches
This commit is contained in:
parent
0bc81c8943
commit
0f62151dcf
@ -1,31 +1,40 @@
|
||||
{
|
||||
stdenv
|
||||
, mpi
|
||||
, impi
|
||||
, mcxx
|
||||
, icc
|
||||
, gitBranch ? "garlic/tampi+isend+oss+taskfor"
|
||||
, tampi ? null
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lulesh";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm03.bsc.es/mmaronas/lulesh.git";
|
||||
ref = "master";
|
||||
url = "ssh://git@bscpm03.bsc.es/garlic/apps/lulesh.git";
|
||||
ref = gitBranch;
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
preBuild = optionalString (tampi != null) "export TAMPI_HOME=${tampi}";
|
||||
|
||||
#TODO: Allow multiple MPI implementations and compilers
|
||||
buildInputs = [
|
||||
mpi
|
||||
impi
|
||||
icc
|
||||
mcxx
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
#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/ \;
|
||||
find . -name 'lulesh*' -type f -executable -exec cp \{\} $out/bin/${name} \;
|
||||
'';
|
||||
programPath = "/bin/${name}";
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user