Git Product home page Git Product logo

Comments (6)

stsoe avatar stsoe commented on May 23, 2024

One problem with relative path is that it requires LD_LIBRARY_PATH being set. With absolute path, user should be able to run any OpenCL application without setting environment first. I don't know of a good solution to override the ICD loader when debugging.

from xrt.

maxzhen avatar maxzhen commented on May 23, 2024

So do we recommend not to install the package and use OpenCL's ICD when you need to debug the libraries?

from xrt.

stsoe avatar stsoe commented on May 23, 2024

Lacking a better suggestion, I recommend modifying the ICD loader text file as we did this morning if and only if you need to debug. Regardless of installation or not, you will have a problem is there is an old version of XRT installed but you want to debug with your own local version.

from xrt.

maxzhen avatar maxzhen commented on May 23, 2024

I'm wondering if it's appropriate to add a check in run.sh for absolute path setting in ICD and warn user that you might not be doing what you think you are?

from xrt.

maxzhen avatar maxzhen commented on May 23, 2024

In run.sh, we can run ldd against host.exe to see if it's directly linked against libOpenCL.so. If yes, then we can check if we have absolute path in ICD. If yes, then we can warn user about this.

from xrt.

keryell avatar keryell commented on May 23, 2024

I think we have to focus on having the normal case be simple for the normal user.
A user wanting to debug XRT will be probably knowledgeable to handle debugging with the ICD, changing /etc/OpenCL/vendors/xilinx.icd, play with https://github.com/intel/opencl-intercept-layer or whatever.
So what about closing this issue and considering the current state as a normal behaviour?

from xrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.