Comments (8)
Hi there. Which FPGA do you want to build for?
from hlslib.
I'm running the script on the server, which has a U250 card, as well as other types of cards. I also tried to type "platforminfo -l" instruction, but the output shows as below:
{
"platforms": ""
}
It seems that you use the code below to search for the available FPGA, is there any way to fix the problem? Thank you!
"find_program(Vitis_PLATFORMINFO platforminfo PATHS ${VITIS_ROOT}/bin NO_DEFAULT_PATH)"
from hlslib.
It seems like this is not an hlslib issue. If platforminfo
cannot find the platform then the tools also will not be able to. I recommend that you check if the U250 platform drivers have been installed, and then check where they are installed. Maybe it will help you find out why platforminfo
does not detect them.
from hlslib.
Would you mind telling me a bit more about the platform driver? Is there any user guide about it? And if I want to run the code on a machine without FPGA connected, but platform drivers are installed, can I still synthesize the code and build the host code?
from hlslib.
They are here: https://www.xilinx.com/products/boards-and-kits/alveo/u250.html#gettingStarted
Yeah, you can still build everything on a machine without the FPGA, but you still need to install the platform from that page. The only thing you don't install is the bitstream onto the card itself.
from hlslib.
Thanks a lot. I downloaded U250 Development Target Platform and then it works well during "make hw" step, though the hardware synthesis, especially block-level synthesis for gemm_hls, takes a long time.
But I found it report an error when I change the platform to U50, the error was reported as follows, have you met a similar problem?
#make hw
.......
[ 50%] Linking MatrixMultiplication for hardware.
........
INFO: [SYSTEM_LINK 82-51] Create system connectivity graph
INFO: [SYSTEM_LINK 82-102] Applying explicit connections to the system connectivity graph: /home/xxx/code/gemm_hls/build/_x/link/sys_link/cfgraph/cfgen_cfgraph.xml
INFO: [SYSTEM_LINK 82-38] [03:44:33] cfgen started: /opt/tools/xilinx/Vitis/2020.2/bin/cfgen -sp MatrixMultiplicationKernel_1.m_axi_gmem0:DDR[1] -sp MatrixMultiplicationKernel_1.m_axi_gmem1:DDR[1] -sp MatrixMultiplicationKernel_1.m_axi_gmem2:DDR[1] -dmclkid 0 -r /home/xxx/code/gemm_hls/build/_x/link/sys_link/_sysl/.cdb/xd_ip_db.xml -o /home/xxx/code/gemm_hls/build/_x/link/sys_link/cfgraph/cfgen_cfgraph.xml
INFO: [CFGEN 83-0] Kernel Specs:
INFO: [CFGEN 83-0] kernel: MatrixMultiplicationKernel, num: 1 {MatrixMultiplicationKernel_1}
INFO: [CFGEN 83-0] Port Specs:
INFO: [CFGEN 83-0] kernel: MatrixMultiplicationKernel_1, k_port: m_axi_gmem0, sptag: DDR[1]
INFO: [CFGEN 83-0] kernel: MatrixMultiplicationKernel_1, k_port: m_axi_gmem1, sptag: DDR[1]
INFO: [CFGEN 83-0] kernel: MatrixMultiplicationKernel_1, k_port: m_axi_gmem2, sptag: DDR[1]
ERROR: [CFGEN 83-2287] --sp tag applied with an invalid sp tag: DDR[1]
ERROR: [CFGEN 83-2287] --sp tag applied with an invalid sp tag: DDR[1]
ERROR: [CFGEN 83-2287] --sp tag applied with an invalid sp tag: DDR[1]
ERROR: [CFGEN 83-2297] Please consult platforminfo <platform.xpfm path> for sptag information
ERROR: [CFGEN 83-2298] Exiting due to previous error
ERROR: [SYSTEM_LINK 82-36] [03:44:34] cfgen failed
........
from hlslib.
I think the U50 only has HBM, so you'd have to change the memory mapping to use this instead. I don't have a "nice" interface to configure this, unfortunately, so for now you'd have to manually change this in CMakeLists.txt. You can open an issue with a feature request :-)
from hlslib.
Hi,
Recently, I installed Xilinx RunTime and Deployment Target Platform of U250 by following step1 to step3 in the website https://www.xilinx.com/products/boards-and-kits/alveo/u250.html#gettingStarted . When I run
platforminfo -l
it shows an error
Error parsing platform file: /opt/xilinx/platforms/xilinx_u250_gen3x16_xdma_4_1_202210_1.xpfm
Line number:16. Mandatory element missing
ERROR: Caught an internal exception: failed to parse the XPFM file
I think it might be the reason that I failed to run the cmake command
-- Querying default clock for xilinx_u250_gen3x16_xdma_4_1_202210_1.
Exception: failed to parse the XPFM file
CMake Error at CMakeLists.txt:129 (string):
string begin index: -1 is out of range 0 - 174-- Querying Vitis platform for MatrixMultiplication.
Exception: failed to parse the XPFM file
-- Configuring incomplete, errors occurred!
In fact, xilinx_u250_gen3x16_xdma_4_1_202210_1.xpfm is in path "/opt/xilinx/platforms/xilinx_u250_gen3x16_xdma_4_1_202210_1/xilinx_u250_gen3x16_xdma_4_1_202210_1.xpfm". However, Vitis could not find it even though I copied it to "/opt/xilinx/platforms" manually.
I am wondering if there are any necessary operations to make xpfm file visible to Vitis. And I use Vitis 2021.1 on Ubuntu20.04.
from hlslib.
Related Issues (20)
- cosim_design with Vivado_hls 2019.2 HOT 5
- Dataflow and Template Functions HOT 2
- Another Project Which Uses HLSLIB HOT 3
- Compatibility with Vitis 2020.2? HOT 16
- Feature Request: support event wait list when enqueueing a Kernel or Buffer Read/Write HOT 1
- Warnings when building with 2020.2 HOT 1
- Support for aarch64/arm64? HOT 6
- Tight packing for DataPack on hardware HOT 2
- hlslib::ConstLog2 off by 1? HOT 3
- c++0x_warning.h HOT 10
- function WriteOptimistic in Stream.h has a void return type HOT 3
- `hlslib::Stream` on the interface HOT 2
- `hlslib::Stream` with `ap_axiu` HOT 2
- Run hlslib on U50 HOT 1
- `hlslib::Stream::write` works like `hls::stream::write` HOT 4
- Vitis 2021.1 failed to parse XPFM file of U250 HOT 3
- Any plans to support Vitis 2022.1 and 2022.2? HOT 3
- Does this library support running on U200 platform? HOT 1
- Does this repository have documentation and simple example programs? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hlslib.