You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
462 B
17 lines
462 B
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
|
|
|