Xilinx / Xilinx/XRT

Confused about whether my npu is working properly or not.

Open
#8,145 0 comments 0 reactions 1 assignee View on GitHub

@maxzhen is already working on this.

Since May 7, 2024.

Dominant language
C++
Stars
686
Forks
549
Avg merge
2d 4h
Merged PRs (30d)
70

Description

  • xbutil validate -d 0000:c7:00.1 runs wrong, how should I use the built-in tools to make sure the hardware is working properly


  • XRT version: 2.17.0 git 8e5c564c0db90ff7ed7dec3fb9f446907ed5ef18 branch 2024.1

  • platform: AMD Ryzen™ 7 8845HS


  1. output from: xbutil examine:
System Configuration
  OS Name              : Linux
  Release              : 6.8.7-xdna
  Version              : #2 SMP PREEMPT_DYNAMIC Sun May  5 07:19:19 HKT 2024
  Machine              : x86_64
  CPU Cores            : 16
  Memory               : 27885 MB
  Distribution         : Gentoo Linux
  GLIBC                : 2.38
  Model                : GEM12
  BIOS vendor          : American Megatrends International, LLC.
  BIOS version         : 1.00

XRT
  Version              : 2.17.0
  Branch               : 2024.1
  Hash                 : a09e1a1e8548b8003fb03b8debff92815ee13172
  Hash Date            : 2024-05-06 20:24:28
  XOCL                 : 2.17.0, a09e1a1e8548b8003fb03b8debff92815ee13172
  XCLMGMT              : 2.17.0, a09e1a1e8548b8003fb03b8debff92815ee13172
  AMDXDNA              : 0.1, unknown
  Firmware Version     : N/A

Devices present
BDF             :  Name
---------------------------------
[0000:c7:00.1]  :  RyzenAI-npu1
  1. output from: xbutil validate -d 0000:c7:00.1
------------------------------------------------------------
                        EARLY ACCESS
        This release of xbutil contains early access
         experimental features which may have bugs.
------------------------------------------------------------
Validate Device           : [0000:c7:00.1]
    Platform              : RyzenAI-npu1
    Performance Mode      : Default
-------------------------------------------------------------------------------
[                    ]: Running Test... < 0s >
libc++abi: terminating due to uncaught exception of type std::bad_any_cast: bad any cast
/opt/xilinx/xrt/bin/unwrapped/loader: line 61: 13155 Aborted                 (core dumped) "${XRT_PROG_UNWRAPPED}" "${XRT_LOADER_ARGS[@]}"
  1. build environment:
    • clang version 18.1.4+libcxx with llvm18 toolchain

    • clang built boost include XRT and it' s all dependencies

    • CXXFLAGS="-march=znver4 -pipe -flto -fno-plt -mfpmath=sse -funroll-loops -fomit-frame-pointer -fno-plt -fno-semantic-interposition -ffunction-sections -fdata-sections -O3 -finline-functions

    • LDFLAGS="${CXXFLAGS} -Wl,--hash-style=gnu,--sort-common,--as-needed"

  1. dmesg: https://gist.github.com/firstwaterer/e65d8c7b269dd72356d4c114cf8e683c

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.