pytorch/data

[StatefulDataLoader] macOS tests are too slow

Closed this issue ยท 0 comments

๐Ÿ› Describe the bug

test_state_dict is very slow on macOS (and slows down CI), likely because of macOS default multiprocessing_context being spawn instead of fork. The StatefulDataLoader tests on macOS take ~1.5 hours, vs 10 minutes on Linux and Windows.

Example of test-runtimes on my local mac:

image

We should a) update CI to log test times, b) for macOS, drop some of the tests. Each test_mp* test runs 6x, and if we have coverage from Linux + Win then we probably don't need all of them for mac

Versions

Nightly