4f02bb751b312aec02eab82737382f1f94829a4a,tests/pytorch/test_kvstore.py,,,#,96

Before Change



    pid = os.fork()
    if pid == 0:
        start_server(server_embed)
    else:
        time.sleep(2) // wait server start
        start_client(server_embed)

After Change


    // client process
    p4 = Process(target=start_client, args=(True,))
    p5 = Process(target=start_client, args=(True,))
    p6 = Process(target=start_client, args=(False,))
    p7 = Process(target=start_client, args=(False,))


    // start server process
    p0.start()
    p1.start()
    p2.start()
    p3.start()

    // start client process
    p4.start()
    p5.start()
    p6.start()
    p7.start()


    p0.join()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/dgl
Commit Name: 4f02bb751b312aec02eab82737382f1f94829a4a
Time: 2019-12-29
Author: mctt90@gmail.com
File Name: tests/pytorch/test_kvstore.py
Class Name:
Method Name:


Project Name: dmlc/dgl
Commit Name: b133abb82e128bb091ffd1c299b427f3b3958cb3
Time: 2020-02-16
Author: mctt90@gmail.com
File Name: examples/pytorch/dis_kvstore/server.py
Class Name:
Method Name: start_server


Project Name: dmlc/dgl
Commit Name: b133abb82e128bb091ffd1c299b427f3b3958cb3
Time: 2020-02-16
Author: mctt90@gmail.com
File Name: examples/mxnet/dis_kvstore/server.py
Class Name:
Method Name: start_server