saiph: sanitize address and compile for avx2

This commit is contained in:
Rodrigo Arias 2020-07-03 11:13:41 +02:00
parent 1e02ac9023
commit 7d8f86eaad
2 changed files with 9 additions and 6 deletions

Binary file not shown.

View File

@ -11,16 +11,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "saiph"; 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";
# #rev = "a8372abf9fc7cbc2db0778de80512ad4af244c29"; ref = "VectorisationSupport";
# ref = "VectorisationSupport"; };
# };
src = /tmp/saiph; #src = /tmp/saiph;
enableParallelBuilding = true; enableParallelBuilding = true;
dontStrip = true; dontStrip = true;
enableDebugging = true;
buildInputs = [ buildInputs = [
nanos6 nanos6
@ -33,9 +33,12 @@ stdenv.mkDerivation rec {
preBuild = '' preBuild = ''
cd saiphv2/cpp/src cd saiphv2/cpp/src
sed -i s/skylake-avx512/core-avx2/g Makefile*
export VTK_VERSION=8.2 export VTK_VERSION=8.2
export VTK_HOME=${vtk} export VTK_HOME=${vtk}
export SAIPH_HOME=. export SAIPH_HOME=.
export NIX_CFLAGS_COMPILE+=" -fsanitize=address"
''; '';
makeFlags = [ makeFlags = [