Skip to content

Commit

Permalink
Update um.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogull committed Apr 8, 2024
1 parent 0e77a6c commit 87ac647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion umbridge/um.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def __init__(self, url, name):
raw_shmem_input[:] = testvec[0]
shm_c_out = shared_memory.SharedMemory("/umbridge_test_shmem_out_" + str(tid), create=True, size=8)
raw_shmem_output = np.ndarray(1, dtype=np.float64, buffer=shm_c_out.buf)
response = requests.post(f"{self.url}/TestShMem", json=input).json()
try: response = requests.post(f"{self.url}/TestShMem", json=input).json()
except: pass
result = []
result.append(raw_shmem_output.tolist()[0])
shm_c_in.close()
Expand Down

0 comments on commit 87ac647

Please sign in to comment.