Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
bump version (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored May 31, 2024
1 parent 86f811b commit 93243ac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
9 changes: 3 additions & 6 deletions examples/gen_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,9 @@ def build_cdo(which_pi):
if platform.system() != "Windows":
XAie_ErrorHandlingInit(devInst)

XAie_LoadElf(
devInst,
tile_0_2,
str(Path(__file__).parent.absolute() / f"{which_pi}.elf"),
False,
)
elf_path = Path(__file__).parent.absolute() / f"{which_pi}.elf"
assert elf_path.exists()
XAie_LoadElf(devInst, tile_0_2, str(elf_path), False)

XAie_CoreReset(devInst, tile_0_2)
XAie_CoreUnreset(devInst, tile_0_2)
Expand Down
6 changes: 4 additions & 2 deletions examples/xrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ def init_xrt_load_kernel(xclbin: Path):
0x00010100,
]

whichpi = "twopi"

instr_v = _PROLOG + shim_instr_v
instr_v = np.array(instr_v, dtype=np.uint32)
inout0 = np.zeros((1,), dtype=np.float32)

device, xclbin = init_xrt_load_kernel(Path(__file__).parent.absolute() / "pi.xclbin")
device, xclbin = init_xrt_load_kernel(Path(__file__).parent.absolute() / f"{whichpi}.xclbin")


def go():
context = pyxrt.hw_context(device, xclbin.get_uuid())
xkernel = next(k for k in xclbin.get_kernels() if k.get_name() == "pi")
xkernel = next(k for k in xclbin.get_kernels() if k.get_name() == whichpi)
kernel = pyxrt.kernel(context, xkernel.get_name())

bo_instr = pyxrt.bo(
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ auditwheel; sys_platform == 'linux'
cibuildwheel
pyPCIe
cffi
einspect
einspect
pycapi; sys_platform == 'linux'
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def build_extension(self, ext: CMakeExtension) -> None:

setup(
name=PACKAGE_NAME,
version="0.0.1",
author="Maksim Levental",
author_email="[email protected]",
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 93243ac

Please sign in to comment.