This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc97286
commit b9e152f
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# To be run in sudo mode | ||
sudo su | ||
|
||
# Install dependencies | ||
dnf install -y git curl-dev libjsoncpp-dev | ||
#? dnf install -y packagegroup-petalinux-self-hosted | ||
pip3 install backports.entry-points-selectable filelock | ||
pip3 install wheel pyopencl pytest pytest-flask flake8 | ||
|
||
|
||
# Compile DRM library | ||
git clone --recursive https://github.com/Accelize/drm.git -b dev | ||
cd drm | ||
mkdir build | ||
cd build | ||
cmake -DPYTHON3=ON -DTESTS=ON .. | ||
cmake -DPYTHON3=ON -DTESTS=ON -DCMAKE_BUILD_TYPE=Debug .. | ||
make | ||
cd .. | ||
|
||
export XILINX_XRT=/usr | ||
|
||
# Start test | ||
LD_LIBRARY_PATH=/home/petalinux/drm/build python3 -m pytest --backend=c --cred=../../cred.json --server=dev --fpga_image=fpga-drm-hybrid-adder.som --drm_controller_base_address=0xA0010000 -ra |
File renamed without changes.
File renamed without changes.