Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running FINN examples #79

Open
Galapple opened this issue Apr 16, 2024 · 0 comments
Open

Problem running FINN examples #79

Galapple opened this issue Apr 16, 2024 · 0 comments

Comments

@Galapple
Copy link

I have XRT version 2.11.634 and I am reciving this error while trying to run 1_cifar10_with_cnv_networks, can anyone specify what needs to be done in order to run this notebook?

Below are the cells that I run so far:
from finn_examples import models
print(list(filter(lambda x: "cifar10" in x, dir(models))))

accel = models.cnv_w1a1_cifar10()

XRT build version: 2.11.634
Build hash: 5ad5998d67080f00bca5bf15b3838cf35e0a7b26
Build date: 2021-06-09 05:08:58
Git branch: 2021.1
PID: 69674
UID: 1004
[Wed Mar 13 13:50:12 2024 GMT]
HOST: cauchy
EXE: /usr/local/bin/python3.9
[XRT] ERROR: See dmesg log for details. err=-2

RuntimeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 accel = models.cnv_w1a1_cifar10()

File ~/.local/lib/python3.9/site-packages/finn_examples/models.py:274, in cnv_w1a1_cifar10(target_platform)
272 model_name = "cnv-w1a1"
273 filename = find_bitfile(model_name, target_platform)
--> 274 return FINNExampleOverlay(filename, driver_mode, _cifar10_cnv_io_shape_dict)

File ~/.local/lib/python3.9/site-packages/finn_examples/driver.py:80, in FINNExampleOverlay.init(self, bitfile_name, platform, io_shape_dict, batch_size, fclk_mhz, device, download, runtime_weight_dir)
48 def init(
49 self,
50 bitfile_name,
(...)
57 runtime_weight_dir="runtime_weights/",
58 ):
59 """Initialize the FINN accelerator.
60
61 Parameters
(...)
78 Path to runtime weights folder.
79 """
---> 80 super().init(bitfile_name, download=download, device=device)
81 self.runtime_weight_dir = runtime_weight_dir
82 self._io_shape_dict = io_shape_dict

File ~/.local/lib/python3.9/site-packages/pynq/overlay.py:348, in Overlay.init(self, bitfile_name, dtbo, download, ignore_version, device, gen_cache)
345 self.systemgraph = None
347 if download:
--> 348 self.download()
349 else:
350 if gen_cache:

File ~/.local/lib/python3.9/site-packages/pynq/overlay.py:428, in Overlay.download(self, dtbo)
425 else:
426 Clocks.set_pl_clk(i)
--> 428 super().download(self.parser)
429 if dtbo:
430 super().insert_dtbo(dtbo)

File ~/.local/lib/python3.9/site-packages/pynq/bitstream.py:168, in Bitstream.download(self, parser)
151 def download(self, parser=None):
152 """Download the bitstream onto PL and update PL information.
153
154 If device tree blob has been specified during initialization, this
(...)
166
167 """
--> 168 self.device.download(self, parser)

File ~/.local/lib/python3.9/site-packages/pynq/pl_server/xrt_device.py:541, in XrtDevice.download(self, bitstream, parser)
539 with open(bitstream.bitfile_name, "rb") as f:
540 data = f.read()
--> 541 self._xrt_download(data)
542 super().post_download(bitstream, parser)

File ~/.local/lib/python3.9/site-packages/pynq/pl_server/xrt_device.py:529, in XrtDevice._xrt_download(self, data)
527 xrt.xclOpenContext(self.handle, v["uuid_ctypes"], v["idx"], True)
528 self.contexts = old_contexts
--> 529 raise RuntimeError(
530 "Programming Device failed: " + _format_xrt_error(err)
531 )
532 finally:
533 xrt.xclUnlockDevice(self.handle)

RuntimeError: Programming Device failed: EINVAL (22) Invalid argument
I have also tryed with a super user and it didn't helped.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant