creams: use gitTable for all branches
This commit is contained in:
parent
53c098d921
commit
20e99f122f
@ -9,41 +9,33 @@
|
||||
, gnuDef
|
||||
, intelDef
|
||||
, cc
|
||||
, gitBranch
|
||||
, gitBranch ? "garlic/mpi+send+seq"
|
||||
, gitCommit ? null
|
||||
, garlicTools
|
||||
}:
|
||||
|
||||
assert (mpi == impi || mpi == openmpi);
|
||||
|
||||
let
|
||||
mpiName = (if mpi == openmpi then
|
||||
"OpenMPI"
|
||||
else
|
||||
"IntelMPI");
|
||||
|
||||
compName = (if cc == intelDef then
|
||||
"Intel"
|
||||
else
|
||||
"GNU");
|
||||
# FIXME: We should find a better way to specify the MPI implementation
|
||||
# and the compiler.
|
||||
mpiName = if mpi == openmpi then "OpenMPI" else "IntelMPI";
|
||||
compName = if cc == intelDef then "Intel" else "GNU";
|
||||
|
||||
gitSource = garlicTools.fetchGarlicApp {
|
||||
appName = "creams";
|
||||
inherit gitCommit gitBranch;
|
||||
gitTable = import ./git-table.nix;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "creams";
|
||||
|
||||
# src = /home/Computational/pmartin1/creams-simplified;
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm03.bsc.es/pmartin1/creams-simplified.git";
|
||||
ref = "${gitBranch}";
|
||||
};
|
||||
inherit (gitSource) src gitBranch gitCommit;
|
||||
|
||||
programPath = "/bin/creams.exe";
|
||||
|
||||
buildInputs = [
|
||||
nanos6
|
||||
mpi
|
||||
cc
|
||||
tampi
|
||||
mcxx
|
||||
];
|
||||
buildInputs = [ nanos6 mpi cc tampi mcxx ];
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
@ -55,8 +47,6 @@ stdenv.mkDerivation rec {
|
||||
export FORTRAN_COMPILER=${compName}
|
||||
export MPI_LIB=${mpiName}
|
||||
|
||||
echo
|
||||
|
||||
CREAMS_UPDATE_ENVIRONMENT
|
||||
'';
|
||||
|
||||
@ -64,4 +54,4 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/bin
|
||||
cp -a build/* $out/bin
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
12
garlic/apps/creams/git-table.nix
Normal file
12
garlic/apps/creams/git-table.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
# Auto-generated with garlic-git-table on 2021-03-31 for repo:
|
||||
# ssh://git@bscpm03.bsc.es/pmartin1/creams-simplified.git
|
||||
|
||||
"garlic/mpi+isend+omp+task" = "e6aa540820ee12d3d45d0eef8e7eeb2f0f1daea2";
|
||||
"garlic/mpi+isend+oss+task" = "016f33b8bec996a4546e8f08b1b6b1709f00499b";
|
||||
"garlic/mpi+send+omp+fork" = "e56e059264ad1bfe5e0c96a8b9303d21dd7fa20a";
|
||||
"garlic/mpi+send+omp+task" = "919580213de34bc5b6ba60c768c5dde5e501a1f6";
|
||||
"garlic/mpi+send+oss+task" = "adab8b66f27317d51445648302e7b133edf4837d";
|
||||
"garlic/mpi+send+seq" = "956125f9334493d31ceee3fa7024efa65bee9ca5";
|
||||
"garlic/tampi+isend+oss+task" = "14a121627679a251909d4b8103d260e27eac1d29";
|
||||
}
|
@ -2,17 +2,22 @@
|
||||
stdenv
|
||||
, granul ? 0
|
||||
, nprocz ? 0
|
||||
, gitBranch
|
||||
, gitBranch ? "garlic/mpi+send+seq"
|
||||
, gitCommit ? null
|
||||
, garlicTools
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
gitSource = garlicTools.fetchGarlicApp {
|
||||
appName = "creams";
|
||||
inherit gitCommit gitBranch;
|
||||
gitTable = import ./git-table.nix;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "creams-input";
|
||||
|
||||
# src = /home/Computational/pmartin1/creams-simplified;
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm03.bsc.es/pmartin1/creams-simplified.git";
|
||||
ref = "${gitBranch}";
|
||||
};
|
||||
inherit (gitSource) src gitBranch gitCommit;
|
||||
|
||||
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
|
||||
|
||||
@ -28,4 +33,4 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out
|
||||
cp -a SodTubeBenchmark $out/
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
@ -20,12 +20,9 @@
|
||||
creams = callPackage ./creams/default.nix {
|
||||
gnuDef = self.gfortran10 ; # Default GNU compiler version
|
||||
intelDef = bsc.icc ; # Default Intel compiler version
|
||||
gitBranch = "garlic/mpi+send+seq";
|
||||
};
|
||||
|
||||
creamsInput = callPackage ./creams/input.nix {
|
||||
gitBranch = "garlic/mpi+send+seq";
|
||||
};
|
||||
creamsInput = callPackage ./creams/input.nix { };
|
||||
|
||||
hpcg = callPackage ./hpcg/default.nix {
|
||||
gitBranch = "garlic/tampi+isend+oss+task";
|
||||
|
Loading…
Reference in New Issue
Block a user