fwi: use enableIO instead of ioFreq

This commit is contained in:
Rodrigo Arias 2021-04-12 20:09:17 +02:00
parent e49e3b087f
commit dd75a840ce
5 changed files with 15 additions and 16 deletions

View File

@ -45,6 +45,9 @@ rec {
fwiParams = bsc.apps.fwi.params.override { fwiParams = bsc.apps.fwi.params.override {
inherit (conf) nx ny nz; inherit (conf) nx ny nz;
}; };
ioFreq = if (conf.enableIO) then (conf.ioFreq or "-1") else "9999";
in stages.exec { in stages.exec {
inherit nextStage; inherit nextStage;
@ -84,7 +87,7 @@ rec {
] ++ optional (needsBlocksize conf) conf.blocksize ++ [ ] ++ optional (needsBlocksize conf) conf.blocksize ++ [
"-1" # Fordward steps "-1" # Fordward steps
"-1" # Backward steps "-1" # Backward steps
conf.ioFreq # Write/read frequency ioFreq # Write/read frequency
]; ];
post = '' post = ''

View File

@ -38,7 +38,8 @@ let
inherit (c.n) nx ny nz ntpn nodes; inherit (c.n) nx ny nz ntpn nodes;
# Other FWI parameters # Other FWI parameters
ioFreq = -1; enableIO = true;
enableCTF = false;
# Repeat the execution of each unit several times # Repeat the execution of each unit several times
loops = 10; loops = 10;
@ -50,8 +51,6 @@ let
time = "02:00:00"; time = "02:00:00";
jobName = unitName; jobName = unitName;
enableCTF = false;
# Enable permissions to write in the local storage # Enable permissions to write in the local storage
extraMounts = [ fs.local.temp ]; extraMounts = [ fs.local.temp ];
tempDir = fs.local.temp; tempDir = fs.local.temp;

View File

@ -29,7 +29,7 @@ let
blocksize = [ 1 2 4 8 ]; blocksize = [ 1 2 4 8 ];
n = [ {nx=500; nz=500; ny=16000;} ]; n = [ {nx=500; nz=500; ny=16000;} ];
nodes = if (enableExtended) then range2 1 16 else [ 4 ]; nodes = if (enableExtended) then range2 1 16 else [ 4 ];
ioFreq = [ 9999 (-1) ]; enableIO = [ false true ];
}; };
machineConfig = targetMachine.config; machineConfig = targetMachine.config;
@ -40,11 +40,11 @@ let
unitName = "${expName}" unitName = "${expName}"
+ "-nodes${toString nodes}" + "-nodes${toString nodes}"
+ "-bs${toString blocksize}" + "-bs${toString blocksize}"
+ "-ioFreq${toString ioFreq}" + (if (enableIO) then "-io1" else "-io0")
+ "-${toString gitBranch}"; + "-${toString gitBranch}";
inherit (machineConfig) hw; inherit (machineConfig) hw;
inherit (c) gitBranch blocksize ioFreq nodes; inherit (c) gitBranch blocksize enableIO nodes;
inherit (c.n) nx ny nz; inherit (c.n) nx ny nz;
# Repeat the execution of each unit several times # Repeat the execution of each unit several times

View File

@ -42,9 +42,7 @@ let
blocksize = [ 1 2 4 8 ]; blocksize = [ 1 2 4 8 ];
n = [ n = [ {nx=300; ny=2000; nz=300;} ]; # / half node
{nx=300; ny=2000; nz=300;} # / half node
];
}; };
machineConfig = targetMachine.config; machineConfig = targetMachine.config;
@ -60,6 +58,9 @@ let
inherit (c) gitBranch blocksize; inherit (c) gitBranch blocksize;
inherit (c.n) nx ny nz; inherit (c.n) nx ny nz;
enableCTF = false;
enableIO = true;
# Repeat the execution of each unit several times # Repeat the execution of each unit several times
loops = 10; loops = 10;
@ -71,9 +72,6 @@ let
time = "02:00:00"; time = "02:00:00";
jobName = unitName; jobName = unitName;
enableCTF = false;
ioFreq = -1;
# Enable permissions to write in the local storage # Enable permissions to write in the local storage
extraMounts = [ fs.local.temp ]; extraMounts = [ fs.local.temp ];
tempDir = fs.local.temp; tempDir = fs.local.temp;

View File

@ -60,7 +60,8 @@ let
inherit (c.n) nx ny nz; inherit (c.n) nx ny nz;
# Other FWI parameters # Other FWI parameters
ioFreq = -1; enableIO = true;
enableCTF = false;
# Repeat the execution of each unit several times # Repeat the execution of each unit several times
loops = 10; loops = 10;
@ -74,8 +75,6 @@ let
time = "02:00:00"; time = "02:00:00";
jobName = unitName; jobName = unitName;
enableCTF = false;
# Enable permissions to write in the local storage # Enable permissions to write in the local storage
extraMounts = [ fs.local.temp ]; extraMounts = [ fs.local.temp ];
tempDir = fs.local.temp; tempDir = fs.local.temp;