FINN Development in a VS Code Dev Container (on Windows using WSL 2) #1084
Replies: 3 comments 7 replies
-
|
I also tried to experiment with a custom BuildKit frontend, for example this one to apply the patch to Dockerfile.finn by extending instead of modifying it. Unfortunately, custom frontends like this are broken in dev containers until microsoft/vscode-remote-release#6848 is addressed. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I have a quick question, how do you manage FINN call to vitis_hls since it is a windows install of Vitis ? Personally when launching That what I get if I try to run it : ERROR: Could not find 64-bit executable.
ERROR: /mnt/c/Tools/Xilinx/Vitis_HLS/2024.1/bin/unwrapped/lnx64.o/vitis_hls does not exist |
Beta Was this translation helpful? Give feedback.
-
|
As of this PR FINN+ switched to a containerless Poetry-based setup. This makes most of this guide obsolete as you can run FINN directly from a Python virtual environment in VS Code connected to WSL 2. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been working with FINN in Visual Studio Code on Windows via a WSL 2 Ubuntu distribution and Docker Desktop for a while. This works fine, but the disconnect between writing code in the WSL workspace but executing it within the FINN Docker container (via
run-docker.sh) is not ideal.To work directly within the container, I created the devcontainer.json file I'm sharing here. It allows VS Code to spin up the FINN Docker environment as a dev container, in which your development workspace resides. This has the following benefits:
Setup
Besides some VS Code configuration via
settings.jsonandlaunch.jsonfiles, you'll need to append the following code toDockerfile.finnfor this to work:Other considerations:
Feedback
Please share your ideas for improving this setup here. I'll try to maintain this post accordingly.
Note that this is not an officially supported installation of FINN.
Beta Was this translation helpful? Give feedback.
All reactions