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

Support multiple .xo files #138

Open
tangyuelm opened this issue Jun 16, 2023 · 4 comments
Open

Support multiple .xo files #138

tangyuelm opened this issue Jun 16, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@tangyuelm
Copy link

Dear Authors,

I have used tapa for a while and now I met a problem and wondering if you are convenient to help.

In my project, I have multiple different kernels which need to be called by the host asynchronously. Therefore, I am wondering if it is possible to generate RTL for different kernels from different top files. For example, I want to deploy the 'topcnn1632' 'topfc1601' and 'topbanks' kernels on the u280 board. I have tried the following command but it considers the topfc1601.cpp topbanks.cpp as unrecognized arguments. Could anyone provide any suggestions? Thank you.

rtl:
mkdir $(WORK_DIR)
tapac
--work-dir "$(WORK_DIR)"
-o $(krnl_name).$(platform).hw.xo topcnn1632.cpp topfc1601.cpp topbanks.cpp
--platform $(platform)
--top topcnn1632 topfc1601 topbanks
--work-dir $(krnl_name).$(platform).hw.xo.tapa
--enable-floorplan
--floorplan-output "$(WORK_DIR)/$(krnl_name)_floorplan.tcl"
--connectivity top.ini
--max-area-limit 1.1 \

@Blaok
Copy link
Collaborator

Blaok commented Jun 17, 2023

Hi @tangyuelm, if you would like to generate multiple kernels that will be called by the host separately, you'll need to generate multiple xo files and link them together using v++ --link kernel1.xo kernel2.xo.

@tangyuelm
Copy link
Author

Thank you for the reply. However, I have another concern. If I generate multiple. xo for these kernels separately, will the optimization of Autobridge still benefit the overall floorplan for all the kernels?

@Licheng-Guo
Copy link
Collaborator

Licheng-Guo commented Jun 17, 2023 via email

@tangyuelm
Copy link
Author

I see. Thank you.

@dotkrnl dotkrnl added the enhancement New feature or request label Sep 19, 2024
@dotkrnl dotkrnl changed the title Is it possible to generate .xo for multiple different kernels Support multiple .xo files Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants