From e4ff2aab37e7fe2124b22d5bdefc004b1d097273 Mon Sep 17 00:00:00 2001 From: Cheng Tan Date: Sun, 20 Oct 2024 12:03:15 -0700 Subject: [PATCH 1/3] Update README.md --- README.md | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 1fbe464..5328109 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ CGRA-Flow is an integrated framework for CGRA compilation, exploration, synthesi User Interface Snapshot/Demo -------------------------------------------------------------------------- -![Capture](https://user-images.githubusercontent.com/6756658/213010564-fa74b34e-218f-435e-9e8e-ef5a40f8899d.PNG) +![1016](https://github.com/user-attachments/assets/b15313ba-3c46-4b5b-b333-bdff61990ced) A demo at repl.it (https://repl.it/@ChengTan/cgra-flow) shows some features of CGRA-Flow (the verilog generation and evaluation are not available due to *repl.it*'s limited support of python environment). To explore all the features, please setup CGRA-Flow locally or leverage the docker image. @@ -30,33 +30,17 @@ As CGRA-Flow requires GUI, a script is provided for setting up the display: ```sh docker pull cgra/cgra-flow:demo - # For Mac users like me: + # For Mac users: sh ./run_mac_docker.sh - # Otherwise, if this is your first time establishing a container for CGRA-Flow: - # sh ./run_docker.sh - # Else, use the following command to reopen the same container: - # sh ./start_docker.sh - # Or try to setup GUI (X-11) by yourself. + # Windows Docker customtkinter style UI (Please setup GUI (X-11) first) + # In WSL, execute below script, it will enter container and config x11 DISPLAY automatically + sh ./run_linux_docker.sh # Don't forget to activate the python virtual environment once you are in the container: source /WORK_REPO/venv/bin/activate ``` -```shell -# Windows Docker customtkinter style UI (Please setup GUI (X-11) first) -# In WSL, execute below script, it will enter container and config x11 DISPLAY automatically -sh ./run_linux_docker.sh - -# In container -root@1627139489b9 WORK_REPO# source venv/bin/activate -(venv) root@1627139489b9 WORK_REPO# cd /WORK_REPO/CGRA-Flow - -# Startup theme mode selector UI -(venv) root@1627139489b9 CGRA-Flow# python launch.py -# Three themes are available: dark, light, and classic -``` - Otherwise, if you don't need the GUI, development can be performed in the container with the environment well set up: ```sh docker pull cgra/cgra-flow:demo @@ -67,8 +51,8 @@ Otherwise, if you don't need the GUI, development can be performed in the contai Execution -------------------------------------------------------- ```sh - mkdir build && cd build - python ../mode_dark_light.py + # Startup theme mode selector UI + python launch.py ``` Installation @@ -92,16 +76,6 @@ Citation } ``` -Publications leveraging (parts of) CGRA-Flow toolchain --------------------------------------------------------------------------- -- _"MESA: Microarchitecture Extensions for Spatial Architecture Generation."_ ISCA'23. -- _"An Architecture Interface and Offload Model for Low-Overhead, Near-Data, Distributed Accelerators."_ MICRO'22. -- _"MATCHA: A Fast and Energy-Efficient Accelerator for Fully Homomorphic Encryption over the Torus."_ DAC'22. -- _"DRIPS: Dynamic Rebalancing of Pipelined Streaming Applications on CGRAs."_ HPCA'22. -- _"ARENA: Asynchronous Reconfigurable Accelerator Ring to Enable Data-Centric Parallel Computing."_ TPDS'21. -- _"Ultra-Elastic CGRAs for Irregular Loop Specialization."_ HPCA'21. - - License -------------------------------------------------------------------------- From 096d93c2a2d7c278a6435d6d08df9f8712e0a349 Mon Sep 17 00:00:00 2001 From: Cheng Tan Date: Sun, 20 Oct 2024 12:04:50 -0700 Subject: [PATCH 2/3] Update launch.py with `sh` to avoid `exec` on bash files --- launch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launch.py b/launch.py index 9d11635..5372797 100644 --- a/launch.py +++ b/launch.py @@ -17,13 +17,13 @@ def launchUI(theme_radio_var): print(f'Get theme radio var: {theme_radio_var.get()}') if theme_radio_var.get() == 1: print('Activate light mode.') - os.system("./launchUI.bash light &") + os.system("sh ./launchUI.bash light &") elif theme_radio_var.get() == 2: print('Activate classic mode.') - os.system("./launchUI.bash classic &") + os.system("sh ./launchUI.bash classic &") else: print('Activate dark mode.') - os.system("./launchUI.bash &") + os.system("sh ./launchUI.bash &") master.destroy() From 3bb01a7d25d3daa6b5e07a3263fd04d4307bacf4 Mon Sep 17 00:00:00 2001 From: Cheng Tan Date: Sun, 20 Oct 2024 12:06:55 -0700 Subject: [PATCH 3/3] Update run_mac_docker.sh with Yuqi's docker --- run_mac_docker.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run_mac_docker.sh b/run_mac_docker.sh index 5086155..609e8f8 100644 --- a/run_mac_docker.sh +++ b/run_mac_docker.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash -CONTAINER=cgra/cgra-flow:demo -COMMAND=/bin/bash +CONTAINER=yuqisun/cgra-flow-openroad:latest # cgra/cgra-flow:demo NIC=en0 # Grab the ip address of this box