WIP: Add mpi, omp and mpi+omp experiments. See more.

Seems that gcc compilation with OpenMP throws an error. Investigate.
I think I've forgot to add an override of mpicxx compiler backend
This commit is contained in:
Raúl Peñacoba
2020-10-13 19:20:24 +02:00
parent 01b2584688
commit e20061254b
6 changed files with 139 additions and 20 deletions

View File

@@ -1,11 +1,11 @@
{
stdenv
, cc
, mpi
, gitBranch ? "garlic/seq"
, makefileName ? "Linux_Serial"
, mpi ? null
, gitBranch
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "hpcg";
@@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
buildInputs = [
cc
mpi
];
]
++ optional (mpi != null) mpi;
makeFlags = [
"CC=${cc.cc.CC}"
@@ -30,12 +30,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
configurePhase = ''
mkdir build
cd build
../configure ${makefileName}
'';
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin/