mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-30 21:23:43 +08:00
0b2c431d3a
version: sunnypilot v2026.003.000 (dev)
date: 2026-09-14T15:43:39
master commit: a5f44653d7
18 lines
462 B
Python
18 lines
462 B
Python
from extra.hcqfuzz.spec import TestSpec
|
|
import random
|
|
|
|
class RingAllreduce(TestSpec):
|
|
def prepare(self, dev, seed):
|
|
random.seed(seed)
|
|
|
|
self.env = {
|
|
"GPUS": random.choice([2, 3, 4, 5, 6]),
|
|
"ITERS": random.randint(10, 1000),
|
|
"DEBUG": 2,
|
|
}
|
|
|
|
self.cmd = "python3 test/external/external_benchmark_multitensor_allreduce.py"
|
|
self.timeout = 10 * 60 # 10 minutes
|
|
|
|
def get_exec_state(self): return self.env, self.cmd, self.timeout
|