Add dataset attrset in garlic

Modify nbody to evenly distribute blocks per cpu
This commit is contained in:
2020-10-23 10:19:37 +02:00
parent 06c29b573f
commit 8ce88ef046
5 changed files with 66 additions and 48 deletions

View File

@@ -8,7 +8,7 @@
# Leave the first CPU per socket unused?
, freeCpu ? false
, particles ? 1024 * 32
, particles ? 4096 * 24
}:
with stdenv.lib;
@@ -16,8 +16,7 @@ with stdenv.lib;
let
# Initial variable configuration
varConf = with bsc; {
# We need at least cpusPerNode blocks
nblocks = [ 4 8 16 32 64 128 256 512 ];
nblocks = [ 12 24 48 96 192 384 768 ];
};
machineConfig = targetMachine.config;