Address CI failures - #374
Conversation
|
The arraycontext failure should be addressed by inducer/arraycontext#206. Will spend some time on the failure in |
|
The thing I'm struggling with over here is that in Py3.11 the results are non-deterministic for different interpreter runs with the same |
|
I don't know if this is at all related, but if I run |
|
I cannot reproduce the |
|
fwiw, 3.11 runs perfectly fine on my M1: |
46e36d3 to
8d6f31c
Compare
| nonlocal comm_tag | ||
| comm_tag += 1 | ||
| inner = make_random_dag(rdagc) | ||
| comm_tag += 1 |
There was a problem hiding this comment.
Found one of the issues that led to this. The random DAG generator emitted comm nodes with the same comm tags.
|
Here's a minimal reproducer with 7 nodes that contains the non-determinism issue -- # file: foo.py
import pytato as pt
size = 4
rank = 2
comm_tag = 42
x = pt.make_placeholder("x", 10, "float64")
send1 = pt.staple_distributed_send(
x, dest_rank=(rank-1) % size, comm_tag=comm_tag,
stapled_to=pt.make_distributed_recv(
src_rank=(rank+1) % size, comm_tag=comm_tag,
shape=x.shape, dtype=x.dtype))
comm_tag += 1
send2 = pt.staple_distributed_send(
send1, dest_rank=(rank-1) % size, comm_tag=comm_tag,
stapled_to=pt.make_distributed_recv(
src_rank=(rank+1) % size, comm_tag=comm_tag,
shape=send1.shape, dtype=send1.dtype))
comm_tag += 1
send3 = pt.staple_distributed_send(
send2, dest_rank=(rank-1) % size, comm_tag=comm_tag,
stapled_to=pt.make_distributed_recv(
src_rank=(rank+1) % size, comm_tag=comm_tag,
shape=send2.shape, dtype=send2.dtype))
partition = pt.find_distributed_partition(
pt.make_dict_of_named_arrays({"out": send3}))
assert set(partition.parts.keys()) == set(range(4))and running it with the following command: $ export PYTHONHASHSEED=6
$ for I in {0..40}; do python foo.py; doneI observe a failure rate of 5% (even after fixing PYTHONHASHSEED 🤯🤯🤯) |
|
After:
I no longer see any issues in the regressions/running tests locally. I think we should merge this here. |
|
If the CI passes, I will hit merge here. Fairly trivial change. There was an error in the regression itself. So please take a look at 8d6f31c once you get a chance. |
main.