Saiph compilation details

This commit is contained in:
sandra 2020-07-02 14:47:10 +02:00
parent 9662ff4138
commit 2189436619

View File

@ -9,7 +9,7 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "nbody"; name = "saiph";
src = builtins.fetchGit { src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/DSLs/saiph.git"; url = "ssh://git@bscpm02.bsc.es/DSLs/saiph.git";
@ -17,11 +17,9 @@ stdenv.mkDerivation rec {
ref = "VectorisationSupport"; ref = "VectorisationSupport";
}; };
#dontStrip = true;
# preBuild = '' enableParallelBuilding = true;
# cd saiphv2/cpp/src dontStrip = true;
# '';
buildInputs = [ buildInputs = [
nanos6 nanos6
@ -35,11 +33,17 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
pwd pwd
cd saiphv2/cpp/src cd saiphv2/cpp/src
make -f Makefile.clang apps=ExHeat export VTK_VERSION=8.2
export VTK_HOME=${vtk}
export SAIPH_HOME=.
make -f Makefile.clang
make -f Makefile.clang apps APP=ExHeat -j
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/lib
mkdir -p $out/bin mkdir -p $out/bin
#cp nbody_* $out/bin/ cp obj/libsaiphv2.so $out/lib/
cp bin/ExHeat $out/bin/
''; '';
} }