(session_kind)
| 164 | |
| 165 | @pytest.mark.parametrize("session_kind", _all_session_kinds) |
| 166 | def test_float(session_kind): |
| 167 | num_workers = 4 |
| 168 | sess = session_kind(num_workers=num_workers) |
| 169 | func: di.DPackedFunc = sess.get_global_func("tests.disco.add_one_float") |
| 170 | result: di.DRef = func(1.5) |
| 171 | |
| 172 | for i in range(num_workers): |
| 173 | assert result.debug_get_from_remote(i) == 2.0 |
| 174 | |
| 175 | |
| 176 | @pytest.mark.parametrize("session_kind", _all_session_kinds) |
nothing calls this directly
no test coverage detected
searching dependent graphs…