forked from rarias/bscpkgs
First attempt to create an experiment with CREAMS: strong scaling from 1 to 16 nodes using the pure MPI version
This commit is contained in:
@@ -2,23 +2,39 @@
|
||||
stdenv
|
||||
, nanos6
|
||||
, mpi
|
||||
, openmpi
|
||||
, impi
|
||||
, tampi
|
||||
, mcxx
|
||||
, icc
|
||||
, cc
|
||||
, gitBranch
|
||||
}:
|
||||
|
||||
assert (mpi == impi || mpi == openmpi);
|
||||
|
||||
let
|
||||
mpiName = (if mpi == openmpi then
|
||||
"OpenMPI"
|
||||
else
|
||||
"IntelMPI");
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "creams";
|
||||
|
||||
# src = /home/Computational/pmartin1/creams-simplified;
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/pmartin1/creams-simplified.git";
|
||||
ref = "MPI+OmpSs-2+TAMPI";
|
||||
ref = "${gitBranch}";
|
||||
};
|
||||
|
||||
programPath = "/bin/creams.exe";
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
icc
|
||||
cc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
@@ -27,12 +43,18 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configurePhase = ''
|
||||
export TAMPI_HOME=${tampi}
|
||||
|
||||
. etc/bashrc
|
||||
#export FORTRAN_COMPILER=GNU # GCC compiler
|
||||
export MPI_LIB=${mpiName}
|
||||
|
||||
echo
|
||||
|
||||
CREAMS_UPDATE_ENVIRONMENT
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -a build/* $out/bin
|
||||
'';
|
||||
|
||||
}
|
||||
|
||||
27
garlic/creams/input.nix
Normal file
27
garlic/creams/input.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
stdenv
|
||||
, nodes
|
||||
, gitBranch
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "creams-input";
|
||||
|
||||
# src = /home/Computational/pmartin1/creams-simplified;
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm02.bsc.es/pmartin1/creams-simplified.git";
|
||||
ref = "${gitBranch}";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
pushd SodTubeBenchmark
|
||||
bash gridScript.sh 0 0 $((${toString nodes}*48)) 0
|
||||
popd
|
||||
|
||||
mkdir -p $out
|
||||
cp -a SodTubeBenchmark $out/
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user