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 with hardware emulation of Mandelbrot Application #75

Open
gefl0 opened this issue Oct 25, 2022 · 4 comments
Open

problem with hardware emulation of Mandelbrot Application #75

gefl0 opened this issue Oct 25, 2022 · 4 comments

Comments

@gefl0
Copy link

gefl0 commented Oct 25, 2022

Hello,
Hardware Emulation of Mandelbrot Application does not work because there is no socket between the web server and the host application. As indicated in the framework/build/launch file this is still to be done. Has the problem been solved? It is possible to connect to the web server but nothing more.
MandelbrotLog.txt

Attached file, the generated log from make TARGET=hw_emu launch on amazon development instance

@stevehoover
Copy link
Collaborator

Unfortunately, there isn't really anyone actively maintaining this framework at the moment (and I don't know of a good replacement). So you'd have to do some debugging. AWS and Xilinx have been known to release breaking changes (not that this is necessarily the issue).

@stevehoover
Copy link
Collaborator

...oh, and the socket should come up fine. This has been working in the past.

@gefl0
Copy link
Author

gefl0 commented Oct 27, 2022

Thank you for your response.
I don't understand what I am doing wrong or what I am missing. I get the following errors from the mandelbrot_server.py file (whatever the target is sim, hw_emu or FPGA on F1) :

  1. There is no socket attribute in the 'MandelbrotApplication' instance because no socket is set in the FPGAServerApplication class from server .py file. Here bellow the error message I get :
    File "../webserver/mandelbrot_server.py", line 327, in renderImage
    if self.socket == None or settings["renderer"] == "python":
    AttributeError: 'MandelbrotApplication' object has no attribute 'socket'

  2. And when I finally modified the code in the server .py file to set a socket in the FPGAServerApplication class then I get a second error from the mandelbrot_server.py file because the ' get_image' function is not defined :
    File "../webserver/mandelbrot_server.py", line 336, in renderImage
    img_data = get_image(self.socket, GET_IMAGE, settings_str, False)
    NameError: name 'get_image' is not defined

It seems that the code is not completely developed, there is still work to be done. I can't understand how it is possible that it worked. What am I missing?

Best Regards

@stevehoover
Copy link
Collaborator

I was able to execute the commands from the GettingStarted and launch mandelbrot successfully, so I'm not sure what the issue might be. This was on Ubuntu 20.04.5 LTS. Make sure you clone from github.com/osfpga, not github.com/stevehoover as was stated in the instructions. I've pushed an update for this, though, I don't believe this addresses your issue.

I'm running python3 - 3.8.10.
self.socket is assigned in framework/webserver/server.py.

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

2 participants