esiaccel 0.1.4.dev6__cp313-cp313-win_amd64.whl → 0.1.4.dev27__cp313-cp313-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 +0 -0
- esiaccel/ESICppRuntime.dll +0 -0
- esiaccel/ESICppRuntime.lib +0 -0
- esiaccel/accelerator.py +7 -0
- esiaccel/bin/esiquery.exe +0 -0
- esiaccel/esiCppAccel.cp313-win_amd64.pyd +0 -0
- esiaccel/lib/EsiCosimDpiServer.dll +0 -0
- esiaccel/lib/MtiPli.dll +0 -0
- esiaccel/types.py +17 -4
- {esiaccel-0.1.4.dev6.dist-info → esiaccel-0.1.4.dev27.dist-info}/METADATA +1 -1
- {esiaccel-0.1.4.dev6.dist-info → esiaccel-0.1.4.dev27.dist-info}/RECORD +15 -16
- esiaccel/zlib1.dll +0 -0
- {esiaccel-0.1.4.dev6.dist-info → esiaccel-0.1.4.dev27.dist-info}/WHEEL +0 -0
- {esiaccel-0.1.4.dev6.dist-info → esiaccel-0.1.4.dev27.dist-info}/entry_points.txt +0 -0
- {esiaccel-0.1.4.dev6.dist-info → esiaccel-0.1.4.dev27.dist-info}/licenses/LICENSE +0 -0
- {esiaccel-0.1.4.dev6.dist-info → esiaccel-0.1.4.dev27.dist-info}/top_level.txt +0 -0
esiaccel/CosimBackend.dll
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.dll
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.lib
CHANGED
|
Binary file
|
esiaccel/accelerator.py
CHANGED
|
@@ -41,6 +41,13 @@ class AcceleratorConnection:
|
|
|
41
41
|
def get_service_hostmem(self) -> cpp.HostMem:
|
|
42
42
|
return self.cpp_accel.get_service_hostmem()
|
|
43
43
|
|
|
44
|
+
def get_accelerator(self) -> "Accelerator":
|
|
45
|
+
"""
|
|
46
|
+
Return an accelerator that may be owned by this accelerator connection.
|
|
47
|
+
If no accelerator is owned, will throw.
|
|
48
|
+
"""
|
|
49
|
+
return Accelerator(self.cpp_accel.get_accelerator())
|
|
50
|
+
|
|
44
51
|
|
|
45
52
|
from .esiCppAccel import HostMemOptions
|
|
46
53
|
|
esiaccel/bin/esiquery.exe
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
esiaccel/lib/MtiPli.dll
CHANGED
|
Binary file
|
esiaccel/types.py
CHANGED
|
@@ -448,14 +448,27 @@ class FunctionPort(BundlePort):
|
|
|
448
448
|
self.cpp_port.connect()
|
|
449
449
|
self.connected = True
|
|
450
450
|
|
|
451
|
-
def call(self, **kwargs: Any) -> Future:
|
|
451
|
+
def call(self, *args: Any, **kwargs: Any) -> Future:
|
|
452
452
|
"""Call the function with the given argument and returns a future of the
|
|
453
453
|
result."""
|
|
454
|
-
|
|
454
|
+
|
|
455
|
+
# Accept either positional or keyword arguments, but not both.
|
|
456
|
+
if len(args) > 0 and len(kwargs) > 0:
|
|
457
|
+
raise ValueError("cannot use both positional and keyword arguments")
|
|
458
|
+
|
|
459
|
+
# Handle arguments: for single positional arg, unwrap it from tuple
|
|
460
|
+
if len(args) == 1:
|
|
461
|
+
selected = args[0]
|
|
462
|
+
elif len(args) > 1:
|
|
463
|
+
selected = args
|
|
464
|
+
else:
|
|
465
|
+
selected = kwargs
|
|
466
|
+
|
|
467
|
+
valid, reason = self.arg_type.is_valid(selected)
|
|
455
468
|
if not valid:
|
|
456
469
|
raise ValueError(
|
|
457
|
-
f"'{
|
|
458
|
-
arg_bytes: bytearray = self.arg_type.serialize(
|
|
470
|
+
f"'{selected}' cannot be converted to '{self.arg_type}': {reason}")
|
|
471
|
+
arg_bytes: bytearray = self.arg_type.serialize(selected)
|
|
459
472
|
cpp_future = self.cpp_port.call(arg_bytes)
|
|
460
473
|
return MessageFuture(self.result_type, cpp_future)
|
|
461
474
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
esiaccel/CosimBackend.dll,sha256=
|
|
1
|
+
esiaccel/CosimBackend.dll,sha256=0DQj_D8PtdLQ1kUW05HG4S18wY39uWrjTkC2ywlevw4,7150592
|
|
2
2
|
esiaccel/CosimBackend.lib,sha256=2qSqISOnyefgUZQPnUoDyDzkpcQVnCf-fjyqLb6aINI,4991546
|
|
3
|
-
esiaccel/ESICppRuntime.dll,sha256=
|
|
4
|
-
esiaccel/ESICppRuntime.lib,sha256=
|
|
3
|
+
esiaccel/ESICppRuntime.dll,sha256=cEd-lE5trKQEGoE9GoREITE9el1jj1WbW45e1RNr0ro,3709952
|
|
4
|
+
esiaccel/ESICppRuntime.lib,sha256=RRxXlXn9C-W8s_-6YBQZp4CGMpgO7zlZ5J0zZcNPIeI,14489550
|
|
5
5
|
esiaccel/__init__.py,sha256=C0GLqCQuF5g5qTzmAkf_YAHmBV2XAyiJad3Qz7h8u1g,562
|
|
6
|
-
esiaccel/accelerator.py,sha256=
|
|
6
|
+
esiaccel/accelerator.py,sha256=BcXPsUqcQV3YsVVyYbz9P6JnZLlcnuageFbJwID9_3s,3318
|
|
7
7
|
esiaccel/codegen.py,sha256=uoYELtnIabVvgLeCABj-mWras0BvmSKABPH-cd9nDFk,6560
|
|
8
|
-
esiaccel/esiCppAccel.cp313-win_amd64.pyd,sha256=
|
|
9
|
-
esiaccel/types.py,sha256=
|
|
8
|
+
esiaccel/esiCppAccel.cp313-win_amd64.pyd,sha256=OqSOtr22lbF6FI0FnNdzZ3H9qdq8fjT2raqw7ohbbHU,462336
|
|
9
|
+
esiaccel/types.py,sha256=xR7XbXQ8LqoiiniThYJhqphG813KBNi5d-yHm5bEXtg,17465
|
|
10
10
|
esiaccel/utils.py,sha256=nzar3WALJC_RfmM5v0GeUev5So1-EAYuAMxG9jLj3eQ,1062
|
|
11
|
-
esiaccel/zlib1.dll,sha256=YelRhlcupJGgA9hXIovLku2BcxQzoJH67HARYFTwq8I,90112
|
|
12
11
|
esiaccel/bin/esi-cosim.py,sha256=GwYfNh4aagypheAhGf0EIX6ojkLYKkc5OMlFR9pfXe8,14381
|
|
13
|
-
esiaccel/bin/esiquery.exe,sha256=
|
|
12
|
+
esiaccel/bin/esiquery.exe,sha256=HZWaOPFgymsiQD62UzGq36uEMjVFvHWbpVInNE3AbSc,441856
|
|
14
13
|
esiaccel/cmake/esiaccelConfig.cmake,sha256=u2aW99k1lEcmYTG1P3BTJqtmDrj53wUUaBz_jzw8kYY,565
|
|
15
14
|
esiaccel/cosim/Cosim_DpiPkg.sv,sha256=9qGn1VyAVrzBP5At1thV6xrovg0WghICD01Zz9J221E,3458
|
|
16
15
|
esiaccel/cosim/Cosim_Endpoint.sv,sha256=ri1fHdkiphe8S2-vm6Ru16rBGYiDiS1c8qeCAsl1diU,6498
|
|
@@ -32,13 +31,13 @@ esiaccel/include/esi/Utils.h,sha256=KPd75GajIFeTBVJocXBjwsJqhbZg-ShWZCIe3oQdBss,
|
|
|
32
31
|
esiaccel/include/esi/backends/Cosim.h,sha256=s7vYd0ra6m1nvk-n37MjvBoGVI-CCUKBt0DU4PKlaHM,2838
|
|
33
32
|
esiaccel/include/esi/backends/RpcServer.h,sha256=WMwnhwU2qnrcglGNeiKg9QQHpkDx1QE1JydKYDK4jqE,1856
|
|
34
33
|
esiaccel/include/esi/backends/Trace.h,sha256=kx4wwLH3a0ndmRUdaDyYGZ1SP83zlpFrk30Nw8ZrJJA,3286
|
|
35
|
-
esiaccel/lib/EsiCosimDpiServer.dll,sha256=
|
|
34
|
+
esiaccel/lib/EsiCosimDpiServer.dll,sha256=PwEygBb4b1f4j8c_JWJBqYM_F8_Zu7ifXjbWGh84TLs,159744
|
|
36
35
|
esiaccel/lib/EsiCosimDpiServer.lib,sha256=eFEv_EO7-u7vxUTbURwj0d5rwHNoncITR9P2qJAE1Vk,604164
|
|
37
|
-
esiaccel/lib/MtiPli.dll,sha256=
|
|
36
|
+
esiaccel/lib/MtiPli.dll,sha256=K7wkPSIVCFk1iaVz5S7bWyExKqKLmHyRzFxHAoB-J8g,14848
|
|
38
37
|
esiaccel/lib/MtiPli.lib,sha256=0vBNn5m9C3ulbl8UJ83c0tuxZAKVrB6_B1bQmBE5jc0,14570
|
|
39
|
-
esiaccel-0.1.4.
|
|
40
|
-
esiaccel-0.1.4.
|
|
41
|
-
esiaccel-0.1.4.
|
|
42
|
-
esiaccel-0.1.4.
|
|
43
|
-
esiaccel-0.1.4.
|
|
44
|
-
esiaccel-0.1.4.
|
|
38
|
+
esiaccel-0.1.4.dev27.dist-info/licenses/LICENSE,sha256=vtnVnB8_lN1yPYcA5MeT56R8UsQtBhyzZLBvu_KMf7I,13468
|
|
39
|
+
esiaccel-0.1.4.dev27.dist-info/METADATA,sha256=EzDHoCTb9_E9HCRdj2N_Zkbi2aNZdnFdlTzTkUgYgmg,16147
|
|
40
|
+
esiaccel-0.1.4.dev27.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
|
|
41
|
+
esiaccel-0.1.4.dev27.dist-info/entry_points.txt,sha256=_CuNLV0fyTURxRREFwpzGycifZW_-7-MyuJNEwKK9J8,137
|
|
42
|
+
esiaccel-0.1.4.dev27.dist-info/top_level.txt,sha256=fYWTWMDK4PDu4ePQ9NtcFHas2k8-d1kWhTs2avPpgB4,9
|
|
43
|
+
esiaccel-0.1.4.dev27.dist-info/RECORD,,
|
esiaccel/zlib1.dll
DELETED
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|