Skip to content

Commit

Permalink
stopping server after test
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay-Venkatesh committed Dec 28, 2018
1 parent 105476e commit e827c4b
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions benchmarks/bibw-asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ async def talk_to_client(client_ep):
recv_buffer_region.free_host()

ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/bibw-future.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def talk_to_client(client_ep):

ucp.destroy_ep(client_ep)
cb_not_done = False
ucp.stop_server()

def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/lat-asyncio-blind-recv.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def talk_to_client(client_ep):
send_buffer_region.free_host()

ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/lat-asyncio-fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ async def talk_to_client(client_ep):
recv_buffer_region.free_host()

ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/lat-asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ async def talk_to_client(client_ep):
recv_buffer_region.free_host()

ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/lat-fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def talk_to_client(client_ep):

ucp.destroy_ep(client_ep)
cb_not_done = False
ucp.stop_server()

def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/unibw-asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async def talk_to_client(client_ep):
send_buffer_region.free_host()

ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions benchmarks/unibw-future.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def talk_to_client(client_ep):

ucp.destroy_ep(client_ep)
cb_not_done = False
ucp.stop_server()

def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions tests/test-duality-data-validity-msg-preallocated.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def talk_to_client(client_ep):
send_buffer_region.free_cuda()
recv_buffer_region.free_cuda()
ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions tests/test-duality-data-validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async def talk_to_client(client_ep):

buffer_region.free_cuda()
ucp.destroy_ep(client_ep)
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
13 changes: 9 additions & 4 deletions tests/test-duality.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ async def talk_to_client(client_ep):

buffer_region.free_cuda()
ucp.destroy_ep(client_ep)
print("done with talk_to_client")
ucp.stop_server()

async def talk_to_server(ip, port):

print("in talk_to_server")
msg_log = max_msg_log

server_ep = ucp.get_endpoint(ip, port)
Expand All @@ -45,6 +48,7 @@ async def talk_to_server(ip, port):

buffer_region.free_cuda()
ucp.destroy_ep(server_ep)
print("done with talk_to_server")

parser = argparse.ArgumentParser()
parser.add_argument('-s','--server', help='enter server ip', required=False)
Expand Down Expand Up @@ -74,9 +78,10 @@ async def talk_to_server(ip, port):
asyncio.gather(coro_server, coro_client)
)

try:
loop.run_forever()
except KeyboardInterrupt:
pass
#try:
# loop.run_forever()
#except KeyboardInterrupt:
# pass

loop.close()
ucp.fin()
1 change: 1 addition & 0 deletions tests/test-server-listen-accept-future-await.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async def talk_to_client(client_ep):
recv_buffer_region.free_cuda()
ucp.destroy_ep(client_ep)
print('talk_to_client done')
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down
1 change: 1 addition & 0 deletions tests/test-server-listen-accept-future-recv.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def talk_to_client(client_ep):
ucp.destroy_ep(client_ep)

print("passed talk_to_client")
ucp.stop_server()

async def talk_to_server(ip, port):

Expand Down

0 comments on commit e827c4b

Please sign in to comment.