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:
Pedro Martinez
2020-09-30 17:32:49 +02:00
parent 50eeca2257
commit 5cbc8e4fbb
7 changed files with 594 additions and 13 deletions

View File

@@ -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
View 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/
'';
}