Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Correct versal driver. Rolloback to xrt v2021.1 for regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz-jbleclere committed Mar 14, 2022
1 parent cfcbe4c commit 6edfc97
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions deployment/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
vars:
aws_fpga_install: true
aws_fpga_src_install: /opt/aws_fpga
xilinx_xrt_version: 2021.2
xilinx_xrt_version: 2021.1
xilinx_xrt_env: aws
xilinx_xrt_install: true
xilinx_xrt_ensure_compatible_kernel: true
xilinx_xrt_ensure_compatible_kernel: false

# Install Accelize DRM source & test requirements
- name: accelize.accelize_drm
Expand Down
2 changes: 1 addition & 1 deletion deployment/playbook_test_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
vars:
aws_fpga_install: true
aws_fpga_src_install: /opt/aws_fpga
xilinx_xrt_version: 2021.2
xilinx_xrt_version: 2021.1
xilinx_xrt_env: aws
xilinx_xrt_install: false
xilinx_xrt_ensure_compatible_kernel: false
Expand Down
2 changes: 1 addition & 1 deletion deployment/runTestFromPkgOnEc2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
condition: ${{ contains(config.os_distrib, 'ubuntu') }}
- script: sudo -E tox ${{ config.tox_operation }}
-- --cred=$(Build.SourcesDirectory)/cred.json --server=prod --artifacts_dir=$(Build.SourcesDirectory)/artifacts -rxs ${{ config.tox_extra_option }}
-- --cred=$(Build.SourcesDirectory)/cred.json --server=prod --artifacts_dir=$(Build.SourcesDirectory)/artifacts -ra ${{ config.tox_extra_option }}
displayName: Run tests from package with Tox on ${{ config.os_distrib }}
env:
TOX_PARALLEL_NO_SPINNER: 1
Expand Down
2 changes: 1 addition & 1 deletion deployment/runTestOnEc2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
displayName: Create Accelize credentials file
- script: sudo -E tox ${{ config.tox_operation }}
-- --cred=$(Build.SourcesDirectory)/cred.json --server=$(meteringServer) --artifacts_dir=$(Build.SourcesDirectory)/artifacts -rxs ${{ config.tox_extra_option }}
-- --cred=$(Build.SourcesDirectory)/cred.json --server=$(meteringServer) --artifacts_dir=$(Build.SourcesDirectory)/artifacts -ra ${{ config.tox_extra_option }}
displayName: Run tests with Tox
env:
CODECOV_TOKEN: $(codecovToken)
Expand Down
3 changes: 1 addition & 2 deletions tests/fpga_drivers/_xrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ def _init_fpga(self):
"""
Initialize FPGA handle with XRT and OpenCL libraries.
"""
image_name = splitext(self._fpga_image)[0]
dev =cl.get_platforms()[0].get_devices()
binary = open(_join('/lib','firmware','xilinx',image_name,image_name+'.xclbin'), 'rb').read()
binary = open(self._fpga_image, 'rb').read()
ctx = cl.Context(dev_type=cl.device_type.ALL)
prg = cl.Program(ctx,dev,[binary])
prg.build()
Expand Down
4 changes: 2 additions & 2 deletions tests/refdesigns/versal/vck5000_setup_instructions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ sudo su
# Update and install dependencies
apt update
apt install -y git make g++ libcurl4-openssl-dev libjsoncpp-dev cmake pkg-config python3-dev python3-pip python3-wheel python3-setuptools cython3 tox
pip3 install pyopencl python-dateutil python-flask
pip3 install pyopencl python-dateutil pytest-flask

# Compile DRM library
git clone --recursive https://github.com/Accelize/drm.git -b dev
git clone --recursive https://github.com/Accelize/drm.git -b dev; cd drm

source /opt/xilinx/xrt/setup.sh

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ deps =
flake8
flask
pytest
pytest-flask
requests
setuptools
wheel
Expand Down

0 comments on commit 6edfc97

Please sign in to comment.