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

Cannot read register of vitis kernel in pyxrt #7863

Open
strocode opened this issue Dec 26, 2023 · 0 comments
Open

Cannot read register of vitis kernel in pyxrt #7863

strocode opened this issue Dec 26, 2023 · 0 comments

Comments

@strocode
Copy link

Hello,

I'm having a problem with a kernel locking up. kernel.wait() times out - it works fine for many thousands of calls then magically doesn't.

I'm trying to read the control register to see if I need to call kernel.wait()

pyxrt.kernel.read_register() used to exist then it was deprecated in 2.15.0 (202310.2.15.x) in favour of using `xrt::ip. my kernel is a vitis kernel and doesn't appear in the list of xclbin.get_ips().

Is there some way of reading a register of a vitis kernel in pyxrt? I was also hoping to use the maxilbox features, which also appears to not be in pyxrt.

In [1]: import pyxrt

In [2]: dir(pyxrt)
Out[2]: 
['XCL_BO_FLAGS_NONE',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__spec__',
 'bo',
 'device',
 'ert_cmd_state',
 'kernel',
 'run',
 'uuid',
 'xclBOSyncDirection',
 'xclbin',
 'xclbinip_vector',
 'xclbinkernel_vector',
 'xclbinmem_vector',
 'xrt_info_device']

$ xbutil examine
System Configuration
  OS Name              : Linux
  Release              : 6.1.0-13-amd64
  Version              : #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29)
  Machine              : x86_64
  CPU Cores            : 64
  Memory               : 128223 MB
  Distribution         : Debian GNU/Linux 12 (bookworm)
  GLIBC                : 2.36
  Model                : PowerEdge R750

XRT
  Version              : 2.15.225
  Branch               : 2023.1
  Hash                 : adf27adb3cfadc6e4c41d6db814159f1329b24f3
  Hash Date            : 2023-05-03 10:13:19
  XOCL                 : 2.15.225, adf27adb3cfadc6e4c41d6db814159f1329b24f3
  XCLMGMT              : 2.15.225, adf27adb3cfadc6e4c41d6db814159f1329b24f3

Devices present
BDF             :  Shell                            Platform UUID                         Device ID       Device Ready*  
-------------------------------------------------------------------------------------------------------------------------
[0000:17:00.1]  :  xilinx_u55c_gen3x16_xdma_base_3  97088961-FEAE-DA91-52A2-1D9DFD63CCEF  user(inst=128)  Yes            
[0000:65:00.1]  :  xilinx_u55c_gen3x16_xdma_base_3  97088961-FEAE-DA91-52A2-1D9DFD63CCEF  user(inst=129)  Yes            
[0000:b1:00.1]  :  xilinx_u55c_gen3x16_xdma_base_3  97088961-FEAE-DA91-52A2-1D9DFD63CCEF  user(inst=130)  Yes            
[0000:ca:00.1]  :  xilinx_u55c_gen3x16_xdma_base_3  97088961-FEAE-DA91-52A2-1D9DFD63CCEF  user(inst=131)  Yes          ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant