Merge two-card batch default (owner choice a): two NVIDIA cards pipeline by default
Pipelined groups beat the serial default at 2 and 4 streams on 2x A6000 (+17/+22%) and 2x A4000 (+7..12/+17..20%); one stream equal, -4% on A4000 IQ3_XXS. STRATA_BATCH_GROUPS_NV_SERIAL=1 or STRATA_DEFAULTS=026 gives serial.
This commit is contained in:
commit
2526f2ff99
4 files changed
+55
-4
No files matched your search
@@ -107,6 +107,20 @@ int main() {
|
||||
check(r.groups == 2 && r.mtp_piped && !r.mtp_dropped,
|
||||
"STRATA_PIPED_MTP, --batch-groups 2 given: 2 groups of 2 slots, and the drafts stay");
|
||||
}
|
||||
{ // 0.2.7: two NVIDIA cards pipeline by default; the serial default is opt-in (STRATA_BATCH_GROUPS_NV_SERIAL=1, STRATA_DEFAULTS=026)
|
||||
check(!bg::nv_serial_wanted(nullptr, false), "NV_SERIAL unset: the pipeline");
|
||||
check(!bg::nv_serial_wanted("", false), "NV_SERIAL empty: the pipeline");
|
||||
check(!bg::nv_serial_wanted("0", false), "NV_SERIAL=0: the pipeline");
|
||||
check(bg::nv_serial_wanted("1", false), "NV_SERIAL=1: serial");
|
||||
check(bg::nv_serial_wanted("yes", false), "NV_SERIAL=yes: serial");
|
||||
check(bg::nv_serial_wanted(nullptr, true), "STRATA_DEFAULTS=026: serial (v0.2.6's behaviour)");
|
||||
check(!bg::nv_serial_wanted("0", true), "an explicit NV_SERIAL=0 wins over STRATA_DEFAULTS=026");
|
||||
check(bg::nv_serial_wanted("", true), "NV_SERIAL empty and STRATA_DEFAULTS=026: serial");
|
||||
bg::Input i = in(4, 1);
|
||||
i.nv_serial_faster = bg::nv_serial_wanted(nullptr, false);
|
||||
auto r = bg::resolve(i);
|
||||
check(r.groups == 2 && r.serial == bg::Serial::None, "2 cards, 4 slots, nothing given: 2 pipelined groups, whatever the residency");
|
||||
}
|
||||
{ // STRATA_PIPED_MTP unset: nothing changes, whatever --batch-mtp and the groups say
|
||||
bg::Input i = in(4, 1);
|
||||
i.batch_mtp = true;
|
||||
|
||||
@@ -5957,7 +5957,10 @@ int main(int argc, char** argv) {
|
||||
bin.adapt_async = o.adapt_async != 0;
|
||||
{ const char* ms = std::getenv("STRATA_BATCH_MTP_SERIAL"); bin.mtp_serial = ms != nullptr && ms[0] != '\0' && ms[0] != '0'; }
|
||||
#if !defined(STRATA_USE_HIP)
|
||||
{ const char* nv = std::getenv("STRATA_BATCH_GROUPS_NV_SERIAL"); bin.nv_serial_faster = nv == nullptr || nv[0] != '0'; } // PROPOSED 0.2.1 default (NVIDIA, 2 cards)
|
||||
// NVIDIA, 2 cards: the pipelined groups by default (0.2.7); one serial group, the 0.2.1-0.2.6 default, with
|
||||
// STRATA_BATCH_GROUPS_NV_SERIAL=1 or STRATA_DEFAULTS=026 (batch_groups.hpp nv_serial_wanted)
|
||||
bin.nv_serial_faster = strata::program::batch_groups::nv_serial_wanted(std::getenv("STRATA_BATCH_GROUPS_NV_SERIAL"),
|
||||
strata::qwen_defaults_026());
|
||||
#endif
|
||||
{ const char* mp = std::getenv("STRATA_PIPED_MTP"); bin.mtp_piped = mp != nullptr && mp[0] != '\0' && mp[0] != '0'; }
|
||||
return strata::program::batch_groups::resolve(bin);
|
||||
|
||||
Reference in new issue
Block a user