saiph: fix hardening and affinity
This commit is contained in:
parent
cc101ad1d3
commit
5920c964d2
@ -22,7 +22,7 @@ let
|
||||
mpi = pkgs.bsc.impi;
|
||||
|
||||
# Resources
|
||||
ntasksPerSocket = "1";
|
||||
ntasksPerNode = "2";
|
||||
nodes = "2";
|
||||
|
||||
# Stage configuration
|
||||
@ -50,7 +50,7 @@ let
|
||||
time = "02:00:00";
|
||||
qos = "debug";
|
||||
jobName = "saiph";
|
||||
inherit nixPrefix nodes ntasksPerSocket;
|
||||
inherit nixPrefix nodes ntasksPerNode;
|
||||
};
|
||||
|
||||
control = {stage, conf, ...}: with conf; w.control {
|
||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
programPath = "/bin/ExHeat3D";
|
||||
|
||||
enableParallelBuilding = false;
|
||||
enableParallelBuilding = true;
|
||||
dontStrip = true;
|
||||
enableDebugging = true;
|
||||
|
||||
@ -35,15 +35,14 @@ stdenv.mkDerivation rec {
|
||||
boost
|
||||
];
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
# Required for nanos6
|
||||
hardeningDisable = [ "bindnow" ];
|
||||
|
||||
hardeningEnable = [ "stackprotector" ];
|
||||
|
||||
postPatch = ''
|
||||
|
||||
sed -i 's/^SANITIZE_FLAGS=/SANITIZE_FLAGS=$(DEBUG_FLAGS)/g' \
|
||||
saiphv2/cpp/src/Makefile.clang
|
||||
'';
|
||||
# Enable debug
|
||||
# postPatch = ''
|
||||
# sed -i 's/^SANITIZE_FLAGS=/SANITIZE_FLAGS=$(DEBUG_FLAGS)/g' \
|
||||
# saiphv2/cpp/src/Makefile.clang
|
||||
# '';
|
||||
|
||||
preBuild = ''
|
||||
cd saiphv2/cpp/src
|
||||
|
Loading…
Reference in New Issue
Block a user