1 parent 43a9613 commit cec2f74Copy full SHA for cec2f74
1 file changed
bin/wfbench
@@ -612,6 +612,9 @@ def main():
612
if not args.time_limit and (not args.cpu_work and not args.gpu_work):
613
log_error("At least one of --time-limit, --cpu-work, or --gpu-work should be provided.")
614
sys.exit(1)
615
+ if args.time_limit and (not args.cpu_work and not args.gpu_work):
616
+ log_error("In addition to --time-limit, at least one of --cpu-work or --gpu-work must be provided (to specify which kind of work should be done).")
617
+ sys.exit(1)
618
619
run(**vars(args))
620
0 commit comments