nvflare.private.fed.app.simulator.simulator_runner module

class SimulatorClientRunner(args, clients: [], client_config, deploy_args, build_ctx)[source]

Bases: FLComponent

Init FLComponent.

The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)

FLComponents have the capability to handle and fire events and contain various methods for logging.

do_one_task(client, num_of_threads, gpu, lock, timeout=60.0, task_name='task_exec')[source]
get_next_run_client(gpu)[source]
run(gpu)[source]
run_client_thread(num_of_threads, gpu, lock, end_run_for_all, timeout=60)[source]
class SimulatorRunner(job_folder: str, workspace: str, clients=None, n_clients=None, threads=None, gpu=None, max_clients=100, end_run_for_all=False)[source]

Bases: FLComponent

Init FLComponent.

The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)

FLComponents have the capability to handle and fire events and contain various methods for logging.

client_run(clients, gpu)[source]
create_client(client_name)[source]
create_clients()[source]
dump_stats(workspace: Workspace)[source]
run()[source]
run_process(return_dict)[source]
setup()[source]
simulator_run_main()[source]
split_clients(clients: [], gpus: [])[source]
start_server_app(args)[source]
validate_job_data()[source]