XRT icon indicating copy to clipboard operation
XRT copied to clipboard

XRT is invoked when run a compiled C++ program

Open haipnh opened this issue 2 years ago • 8 comments

Hi,

I have an Alveo U50 card and I use Ubuntu 18.04. Although I don't use the card in my code, the XRT will be invoke when I run the C++ program (fully processed by CPU).

I'm not sure this phenomenon is normal or not. But it may affect to the performance measurement of some lines of C++ code.

The pseudo code is:

int main() {
  std::cout << "Start!\n";
  // do some processes
  std::cout << "End!\n";
}

My build command:

g++ ./main.cpp -o main -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc
./main

Output:

Start!
XRT build version: 2.13.466
Build hash: f5505e402c2ca1ffe45eb6d3a9399b23a0dc8776
Build date: 2022-04-14 17:45:07
Git branch: 2022.1
PID: 32458
UID: 1004
[Wed Mar 22 16:24:39 2023 GMT]
HOST: End!

I checked my bashrc, it does not source xrt's setup.sh by default.

haipnh avatar Mar 22 '23 16:03 haipnh