MCPcopy Create free account
hub / github.com/NVIDIA/DALI / TEST

Function TEST

dali/pipeline/executor/executor2/stream_assignment_test.cc:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134} // namespace
135
136TEST(Exec2Test, StreamAssignment_Single_OnlyCPU) {
137 graph::OpGraph::Builder b;
138 b.Add("a",
139 SpecCPU()
140 .AddOutput("a->out", StorageDevice::CPU));
141 b.AddOutput("a->out_cpu");
142 auto g = std::move(b).GetGraph(true);
143 ExecGraph eg;
144 eg.Lower(g);
145
146 StreamAssignment<StreamPolicy::Single> assignment(eg);
147 auto map = MakeNodeMap(eg);
148 EXPECT_EQ(assignment[map["a"]], std::nullopt);
149}
150
151TEST(Exec2Test, StreamAssignment_Single_CPUMixedGPU) {
152 graph::OpGraph::Builder b;

Callers

nothing calls this directly

Calls 9

SpecCPUFunction · 0.85
MakeNodeMapFunction · 0.85
SpecMixedFunction · 0.85
SpecGPUFunction · 0.85
SpecMetaCPUFunction · 0.85
AddOutputMethod · 0.80
GetGraphMethod · 0.80
AddMethod · 0.45
LowerMethod · 0.45

Tested by

no test coverage detected