esiaccel 0.1.2.dev20__cp312-cp312-win_amd64.whl → 0.1.3.dev20__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of esiaccel might be problematic. Click here for more details.

esiaccel/CosimBackend.dll CHANGED
Binary file
Binary file
Binary file
esiaccel/bin/esi-cosim.py CHANGED
@@ -135,7 +135,10 @@ class Simulator:
135
135
  """Return the command to run the simulation."""
136
136
  assert False, "Must be implemented by subclass"
137
137
 
138
- def run(self, inner_command: str, gui: bool = False) -> int:
138
+ def run(self,
139
+ inner_command: str,
140
+ gui: bool = False,
141
+ server_only: bool = False) -> int:
139
142
  """Start the simulation then run the command specified. Kill the simulation
140
143
  when the command exits."""
141
144
 
@@ -197,12 +200,19 @@ class Simulator:
197
200
  raise Exception("Simulation exited early")
198
201
  time.sleep(0.05)
199
202
 
200
- # Run the inner command, passing the connection info via environment vars.
201
- testEnv = os.environ.copy()
202
- testEnv["ESI_COSIM_PORT"] = str(port)
203
- testEnv["ESI_COSIM_HOST"] = "localhost"
204
- return subprocess.run(inner_command, cwd=os.getcwd(),
205
- env=testEnv).returncode
203
+ if server_only:
204
+ # wait for user input to kill the server
205
+ input(
206
+ f"Running in server-only mode on port {port} - Press anything to kill the server..."
207
+ )
208
+ return 0
209
+ else:
210
+ # Run the inner command, passing the connection info via environment vars.
211
+ testEnv = os.environ.copy()
212
+ testEnv["ESI_COSIM_PORT"] = str(port)
213
+ testEnv["ESI_COSIM_HOST"] = "localhost"
214
+ return subprocess.run(inner_command, cwd=os.getcwd(),
215
+ env=testEnv).returncode
206
216
  finally:
207
217
  # Make sure to stop the simulation no matter what.
208
218
  if simProc:
@@ -317,7 +327,10 @@ class Questa(Simulator):
317
327
  cmd.append(svLib)
318
328
  return cmd
319
329
 
320
- def run(self, inner_command: str, gui: bool = False) -> int:
330
+ def run(self,
331
+ inner_command: str,
332
+ gui: bool = False,
333
+ server_only: bool = False) -> int:
321
334
  """Override the Simulator.run() to add a soft link in the run directory (to
322
335
  the work directory) before running vsim the usual way."""
323
336
 
@@ -327,7 +340,7 @@ class Questa(Simulator):
327
340
  os.symlink(Path(os.getcwd()) / "work", workDir)
328
341
 
329
342
  # Run the simulation.
330
- return super().run(inner_command, gui)
343
+ return super().run(inner_command, gui, server_only=server_only)
331
344
 
332
345
 
333
346
  def __main__(args):
@@ -375,6 +388,11 @@ def __main__(args):
375
388
  nargs=argparse.REMAINDER,
376
389
  help="Command to run in the simulation environment.")
377
390
 
391
+ argparser.add_argument(
392
+ "--server-only",
393
+ action="store_true",
394
+ help="Only run the cosim server, and do not run any inner command.")
395
+
378
396
  if len(args) <= 1:
379
397
  argparser.print_help()
380
398
  return
@@ -398,7 +416,7 @@ def __main__(args):
398
416
  rc = sim.compile()
399
417
  if rc != 0:
400
418
  return rc
401
- return sim.run(args.inner_cmd[1:], gui=args.gui)
419
+ return sim.run(args.inner_cmd[1:], gui=args.gui, server_only=args.server_only)
402
420
 
403
421
 
404
422
  if __name__ == '__main__':
esiaccel/bin/esiquery.exe CHANGED
Binary file
Binary file
Binary file
esiaccel/lib/MtiPli.dll CHANGED
Binary file
esiaccel/zlib1.dll CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: esiaccel
3
- Version: 0.1.2.dev20
3
+ Version: 0.1.3.dev20
4
4
  Summary: ESI accelerators runtime
5
5
  Author-email: John Demme <John.Demme@microsoft.com>
6
6
  License: ==============================================================================
@@ -1,16 +1,16 @@
1
- esiaccel/CosimBackend.dll,sha256=Rrn4QuQ-0jYSmHLhhCkvUQx_qplEJKBQ3ZFGaakLtJs,7161344
1
+ esiaccel/CosimBackend.dll,sha256=iG7Jd3HptmLR4AWIjLIlKg6QXsZHbVed-95cqEOxGYo,7161344
2
2
  esiaccel/CosimBackend.lib,sha256=dZgNr_bh6UBFYi1UKscDYE5Hen86dlqPYcuOgmxDmgM,4990738
3
- esiaccel/ESICppRuntime.dll,sha256=Kb6FBMf4-RdCJqFPzygaz_Fvz8QAKpA9bOtMMH6nY1k,3691520
4
- esiaccel/ESICppRuntime.lib,sha256=oSMmWb5bYyGzPFHsOq__fnJ-elhXqzBL-ZYjd4vamTA,14491514
3
+ esiaccel/ESICppRuntime.dll,sha256=547zZTsjraK7z7e3kKOrRzqVpMGBXhEpOEwjw-pcMyg,3691520
4
+ esiaccel/ESICppRuntime.lib,sha256=9Es-XEfmOQMCG_dlhKavS53qWmRd-LcQ-VxqZCNKImA,14491514
5
5
  esiaccel/__init__.py,sha256=C0GLqCQuF5g5qTzmAkf_YAHmBV2XAyiJad3Qz7h8u1g,562
6
6
  esiaccel/accelerator.py,sha256=GM2FRZF_8nzAJ_7TSRSw_kaJCYWCHMK-cQD8ZZU8QVs,3071
7
7
  esiaccel/codegen.py,sha256=uoYELtnIabVvgLeCABj-mWras0BvmSKABPH-cd9nDFk,6560
8
- esiaccel/esiCppAccel.cp312-win_amd64.pyd,sha256=PSabY4Nc4dJHBsaob_nVeReK5zpP6glWUC971iK2FqA,462336
8
+ esiaccel/esiCppAccel.cp312-win_amd64.pyd,sha256=JHVbxuspcRyh3702L5uopYuKyButpsLRBQCDhHojd5A,462336
9
9
  esiaccel/types.py,sha256=gfUgrX67KYFruX5xsj_wLNJCdwczzLpseyH71M86pW0,17047
10
10
  esiaccel/utils.py,sha256=nzar3WALJC_RfmM5v0GeUev5So1-EAYuAMxG9jLj3eQ,1062
11
- esiaccel/zlib1.dll,sha256=rtruy0YK2VoenAkjwoOqwAoEtlDgWnM8Z8WWndDkCi8,90624
12
- esiaccel/bin/esi-cosim.py,sha256=Q-eW6S8m5fJsgY__-XlPXxXI8HHYsDDqjTNksrZcK60,13808
13
- esiaccel/bin/esiquery.exe,sha256=0w2o4F_Hmt6unCidw4uAwQdZcuSYMdlAfm2CVS06ZtQ,436224
11
+ esiaccel/zlib1.dll,sha256=qTUYEXdjSxFWkXYkV5Wx-yOlgyMgKh843GJaOewT3nc,90624
12
+ esiaccel/bin/esi-cosim.py,sha256=GwYfNh4aagypheAhGf0EIX6ojkLYKkc5OMlFR9pfXe8,14381
13
+ esiaccel/bin/esiquery.exe,sha256=eH1DFJFLx2VGZP9Nz6-I4BEFMdJBiAfxj-cGWecPlJM,436224
14
14
  esiaccel/cmake/esiaccelConfig.cmake,sha256=u2aW99k1lEcmYTG1P3BTJqtmDrj53wUUaBz_jzw8kYY,565
15
15
  esiaccel/cosim/Cosim_DpiPkg.sv,sha256=9qGn1VyAVrzBP5At1thV6xrovg0WghICD01Zz9J221E,3458
16
16
  esiaccel/cosim/Cosim_Endpoint.sv,sha256=ri1fHdkiphe8S2-vm6Ru16rBGYiDiS1c8qeCAsl1diU,6498
@@ -32,13 +32,13 @@ esiaccel/include/esi/Utils.h,sha256=KPd75GajIFeTBVJocXBjwsJqhbZg-ShWZCIe3oQdBss,
32
32
  esiaccel/include/esi/backends/Cosim.h,sha256=s7vYd0ra6m1nvk-n37MjvBoGVI-CCUKBt0DU4PKlaHM,2838
33
33
  esiaccel/include/esi/backends/RpcServer.h,sha256=WMwnhwU2qnrcglGNeiKg9QQHpkDx1QE1JydKYDK4jqE,1856
34
34
  esiaccel/include/esi/backends/Trace.h,sha256=kx4wwLH3a0ndmRUdaDyYGZ1SP83zlpFrk30Nw8ZrJJA,3286
35
- esiaccel/lib/EsiCosimDpiServer.dll,sha256=SnkA9XTEEjt7E4QsgYVV04ZSs7R6cxjbpdLLh9REhZo,160768
35
+ esiaccel/lib/EsiCosimDpiServer.dll,sha256=ii19rvyHK-FXmSHNX-ODXYjsGiGIs14tdt46M-7KMp0,160768
36
36
  esiaccel/lib/EsiCosimDpiServer.lib,sha256=YrKxoXvBjmyrC-yJ7aq4_ePloA9p5X04oXjM8Ers1wY,604164
37
- esiaccel/lib/MtiPli.dll,sha256=Awq7e4U3Z440sPmAsMUmg5as8ph3zXyucS2gyMq4kOc,14848
37
+ esiaccel/lib/MtiPli.dll,sha256=4uySFa2UTPoZYVXlYrv7NMhEUy9nhieTjM2bSZSMrWY,14848
38
38
  esiaccel/lib/MtiPli.lib,sha256=Q__4sWi51FSc2p1hDaN90G0HstSxRy07z0aaXGd2e_w,14570
39
- esiaccel-0.1.2.dev20.dist-info/licenses/LICENSE,sha256=vtnVnB8_lN1yPYcA5MeT56R8UsQtBhyzZLBvu_KMf7I,13468
40
- esiaccel-0.1.2.dev20.dist-info/METADATA,sha256=7Z2TbxKyaVzmKK3OfwJ_WEvMBVTjQ5Q3eQgqRnptXWQ,16147
41
- esiaccel-0.1.2.dev20.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
42
- esiaccel-0.1.2.dev20.dist-info/entry_points.txt,sha256=_CuNLV0fyTURxRREFwpzGycifZW_-7-MyuJNEwKK9J8,137
43
- esiaccel-0.1.2.dev20.dist-info/top_level.txt,sha256=fYWTWMDK4PDu4ePQ9NtcFHas2k8-d1kWhTs2avPpgB4,9
44
- esiaccel-0.1.2.dev20.dist-info/RECORD,,
39
+ esiaccel-0.1.3.dev20.dist-info/licenses/LICENSE,sha256=vtnVnB8_lN1yPYcA5MeT56R8UsQtBhyzZLBvu_KMf7I,13468
40
+ esiaccel-0.1.3.dev20.dist-info/METADATA,sha256=SW7-6hFi9D_YEbqxBhVryPFXPRAyECPX9ocB361pA_0,16147
41
+ esiaccel-0.1.3.dev20.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
42
+ esiaccel-0.1.3.dev20.dist-info/entry_points.txt,sha256=_CuNLV0fyTURxRREFwpzGycifZW_-7-MyuJNEwKK9J8,137
43
+ esiaccel-0.1.3.dev20.dist-info/top_level.txt,sha256=fYWTWMDK4PDu4ePQ9NtcFHas2k8-d1kWhTs2avPpgB4,9
44
+ esiaccel-0.1.3.dev20.dist-info/RECORD,,