forked from rarias/bscpkgs
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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user