| 134 | } // namespace |
| 135 | |
| 136 | TEST(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 | |
| 151 | TEST(Exec2Test, StreamAssignment_Single_CPUMixedGPU) { |
| 152 | graph::OpGraph::Builder b; |
nothing calls this directly
no test coverage detected