forked from rarias/bscpkgs
saiph: modify apps parameters
This commit is contained in:
parent
b64b864194
commit
2b36e33b7e
@ -8,20 +8,20 @@
|
|||||||
, boost
|
, boost
|
||||||
, gitBranch ? "master"
|
, gitBranch ? "master"
|
||||||
, gitCommit ? null
|
, gitCommit ? null
|
||||||
, numComm ? null
|
, enableManualDist ? false
|
||||||
, manualDist ? 0
|
|
||||||
, nbgx ? null
|
, nbgx ? null
|
||||||
, nbgy ? null
|
, nbgy ? null
|
||||||
, nbgz ? null
|
, nbgz ? null
|
||||||
, nblx ? null
|
, nblx ? null
|
||||||
, nbly ? null
|
, nbly ? null
|
||||||
, nblz ? null
|
, nblz ? null
|
||||||
, nbltotal ? null
|
|
||||||
, nsteps ? null
|
, nsteps ? null
|
||||||
, vectFlags ? null
|
, numComm ? null
|
||||||
, debugFlags ? null
|
, enableVectFlags ? false
|
||||||
, asanFlags ? null
|
, enableDebugFlags ? false
|
||||||
|
, enableAsanFlags ? false
|
||||||
, cachelineBytes ? 64
|
, cachelineBytes ? 64
|
||||||
|
, l3sizeKBytes ? 33792
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -50,7 +50,6 @@ stdenv.mkDerivation rec {
|
|||||||
cc
|
cc
|
||||||
vtk
|
vtk
|
||||||
boost
|
boost
|
||||||
# breakpointHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Required for nanos6
|
# Required for nanos6
|
||||||
@ -63,23 +62,27 @@ stdenv.mkDerivation rec {
|
|||||||
make clean
|
make clean
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
#NIX_CFLAGS_COMPILE = "-O1 -g";
|
||||||
|
#NIX_DEBUG = 5;
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"-f" "Makefile.${cc.CC}"
|
"-f" "Makefile.${cc.CC}"
|
||||||
"apps"
|
"apps"
|
||||||
"APP=Heat3D_vect"
|
"APP=Heat3D_vect"
|
||||||
"ROW_ALIGNMENT=${toString cachelineBytes}"
|
"ROW_ALIGNMENT=${toString cachelineBytes}"
|
||||||
] ++ optional (manualDist != 0) "DIST_SET=${toString manualDist}"
|
"L3_SIZE_K=${toString l3sizeKBytes}"
|
||||||
++ optional (manualDist != 0) "NBG_X=${toString nbgx}"
|
] ++ optional (enableManualDist) "DIST_SET=1"
|
||||||
++ optional (manualDist != 0) "NBG_Y=${toString nbgy}"
|
++ optional (enableManualDist) "NBG_X=${toString nbgx}"
|
||||||
++ optional (manualDist != 0) "NBG_Z=${toString nbgz}"
|
++ optional (enableManualDist) "NBG_Y=${toString nbgy}"
|
||||||
|
++ optional (enableManualDist) "NBG_Z=${toString nbgz}"
|
||||||
++ optional (nblx != null) "NBL_X=${toString nblx}"
|
++ optional (nblx != null) "NBL_X=${toString nblx}"
|
||||||
++ optional (nbly != null) "NBL_Y=${toString nbly}"
|
++ optional (nbly != null) "NBL_Y=${toString nbly}"
|
||||||
++ optional (nblz != null) "NBL_Z=${toString nblz}"
|
++ optional (nblz != null) "NBL_Z=${toString nblz}"
|
||||||
++ optional (nsteps != null) "NSTEPS=${toString nsteps}"
|
++ optional (nsteps != null) "NSTEPS=${toString nsteps}"
|
||||||
++ optional (numComm != null) "NUM_COMM=${toString numComm}"
|
++ optional (numComm != null) "NUM_COMM=${toString numComm}"
|
||||||
++ optional (vectFlags != null) "VECT_CHECKS=${toString vectFlags}"
|
++ optional (enableVectFlags) "VECT_CHECKS=1"
|
||||||
++ optional (debugFlags != null) "DEBUG_CHECKS=${toString debugFlags}"
|
++ optional (enableDebugFlags) "DEBUG_CHECKS=1"
|
||||||
++ optional (asanFlags != null) "SANITIZE_CHECKS=${toString asanFlags}"
|
++ optional (enableAsanFlags) "SANITIZE_CHECKS=1"
|
||||||
;
|
;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user